case when
open_date = '1990-01-01'
and supplierid = 1856
and close_date = '2020-03-10'
then 'wpp' else 'cxk' end
case when and 多个条件 决定一个新字段
最新推荐文章于 2021-07-30 13:10:38 发布
本文介绍了一个具体的SQL案例,使用Case When语句进行条件判断。示例中,根据open_date、supplierid和close_date的值来决定输出'wpp'还是'cxk',展示了SQL中条件语句的应用。
1万+

被折叠的 条评论
为什么被折叠?



