select 字段A, 字段B,

CASE
WHEN t.operate = 1 then 'aa'
WHEN t.operate = 2 then 'bb'
WHEN t.operate = 3 then 'cc'
WHEN t.operate = 4 then 'dd'
WHEN t.operate = 5 then 'ee'
WHEN t.operate = 6 then 'ff'
END
as '字段C'

from t_table

 

天津雍博科技有限责任公司

www.yongbosoft.com

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-02-10
  • 2021-07-31
相关资源
相似解决方案