SELECT CASE 语句
******
select 
id
,'sexNo'=
    case 
        when sex='先生' then 2 
        when sex='女士' then 3 
        else 1  
    end
,age
  FROM [ comsiterefer]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-09-16
  • 2021-06-20
  • 2022-12-23
  • 2021-10-29
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
相关资源
相似解决方案