mysql case when then else end 的写法

select t.colum1,t.colum2

(case

when 

t.colum1 = '' 

then

''

t.when colum2 = ''

then

''

else

''

end

) as colum3 

from table t

posted on 2017-11-27 10:23  程序员Mr.song  阅读(319)  评论(0)    收藏  举报