ISNULL(expression,replace_value)函数表达的意思就是,如果expression为NULL,则用replace_value来替换NULL,返回类型为任意类型。

例如:select id,isnull(name,'name字段值为空') as name from table1

posted on 2009-01-21 00:07  〆o殺殸纨o〆  阅读(188)  评论(0编辑  收藏  举报