sql 中的coalesce函数

coalesce(表达式)

相当于

case when 表达式 is not null then 表达式

       when 表达式1 is not null then 表达式1

       else null

end

posted @ 2010-11-03 16:47  空紫竹  阅读(390)  评论(0编辑  收藏  举报