select ( case when t.id=1
then 'wpp' when t.id=2
then 'hq' else 'other'
end) from nbhd2_mobile_user t
当ID等于1的时候显示‘wpp’,2的时候显示'hq' ,其他显示‘other’
呵呵!
select ( case when t.id=1
then 'wpp' when t.id=2
then 'hq' else 'other'
end) from nbhd2_mobile_user t
当ID等于1的时候显示‘wpp’,2的时候显示'hq' ,其他显示‘other’
呵呵!