coalesce(表达式)
相当于
case when 表达式 is not null then 表达式
when 表达式1 is not null then 表达式1
else null
end
转载于:https://www.cnblogs.com/lfzwenzhu/archive/2010/11/03/1868206.html