select (case 字段 when 1 then 'a' when 2 then 'b' else then 'c' end) as column
from tb

解决方案 »

  1.   

    select aa=case when col=1 then 'a' when col=2 then 'b' when col=3 then 'c' end
    from tb
      

  2.   

    select case when column=1 then 'a'
                when column=2 then 'b'
                when column=3 then 'c'
           end 
           as column
    from table