- 链接地址:https://blog.csdn.net/qq_43899283/article/details/124049522
- 链接标题:【SQL中case then的用法】_case then用法_J.Kuchiki的博客-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1591
文章浏览阅读6.8k次。SQL中case then的用法 当我们需要从数据源上直接判断数据显示代表的含义的时候 ,就可以在SQL语句中使用CASE THEN这个函数了。 其中case then有两种格式:1.第一种格式:case 列名when 条件值1 then 选项1when 条件值2 then 选项2.......else 默认值 end1.第二种格式:case when 列名=条件值1 then 选项1when 列名=条件值2 then 选项2.......else 默认值 end话不多说_case then用法
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:case then用法