zigewb

此文章仅仅是涉及到在select中的case when的用法:

select

a

,b

,c

,d

,e

,f     --f字段可以同时出现

,\'LL\'=  ----LL 可以根据自己的需要变换

case

when f<50 then \'z\'                   --涉及到小于

when f between 50 and 80 then \'y\'  --涉及到小于,大于等于

when f between 80 and 90 then \'x\'

else \'w\'  --大于90

end

from mmm

order by a --order by 可有可无 根据需要

分类:

技术点:

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-10
  • 2021-12-04
  • 2022-12-23
  • 2021-07-13
相关资源
相似解决方案