case 方法:
Demo1:
case xx
when "xx" then "xx"
else "xx"
end
Demo2: (case when then 判断 null 时的写法)
case when xx is null
then 'xx'
else 'xx'
end
case 方法:
Demo1:
case xx
when "xx" then "xx"
else "xx"
end
Demo2: (case when then 判断 null 时的写法)
case when xx is null
then 'xx'
else 'xx'
end