纸上得来终觉浅,绝知此事要躬行。

 

sql server 2005空值到实际的转换

SELECT TOP 10
 Id,
 FirstName,
 COALESCE(LastName,'') AS LastName
FROM
 Person (NOLOCK)

 

select ID,name,age,sex,address, coalesce(memo,'aa') as memo from userInfo

 

 

posted on 2010-10-18 14:25  JRoger  阅读(196)  评论(0编辑  收藏  举报

导航