SQL 的CASE 语句应该怎么写

发布网友 发布时间:2022-04-22 06:50

我来回答

2个回答

热心网友 时间:2022-04-10 00:46

select case when type = 1 then ‘正常’ when type = 0 then ‘暂停’ else '' end as '状态'
from proudct ;

热心网友 时间:2022-04-10 02:04

( case
when Type =1 then normal
when Type =0 then stop
end)

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com