解决方案 »

  1.   

    select case when cast(CKS as int)=0   then  ‘空’ else ‘有货’ end as stat
    from 表
      

  2.   

    select case 
            when cast(CKS as int)=0   then  N‘空’ 
               else N‘有货’ end as stat
    from TableNameGood Luck!
      

  3.   


    update [表名]
     set STAT=case CKS when '0' then '空' 
              else '有货' end
      

  4.   

    select case 
            when cast(CKS as int)=0   then  N‘空’ 
               else N‘有货’ end as stat
    from TableName