补充:

select a.uid,a.uname,a.status

case when a.status='1' then "在会"

         
when a.status='0' then "未知"

           
when a.statsu='-1' then '离开'

          end

    as     状态    

from a
case能放到where后面,也可在select中

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-04-26
  • 2021-07-13
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案