当前位置:Gxlcms > 数据库问题 > sql的case 用法

sql的case 用法

时间:2021-07-01 10:21:17 帮助过:3人阅读

select
id
, case id
when 1001 then ‘第一类‘
when 1002 then ‘第二类‘
else ‘第三类‘
end ‘ 类别 ‘
from
dept;

 

技术图片

技术图片

 

sql的case 用法

标签:技术   sel   dep   when   image   nbsp   ima   图片   com   

人气教程排行