select case when string="1"
                   then "返回的数据1"
                   when string="2"
                   then "返回的数据2"
           else "返回的其他数据"
           end  as 新的列名
from table 
where ....

 

相关文章:

  • 2022-02-24
  • 2022-02-08
猜你喜欢
  • 2023-02-08
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
相关资源
相似解决方案