Case when a=xx then ‘xx’ when a=’zz’ then ‘zz’ else ‘cc’ end as 别名
相当于 if-else if-else
case when bid.bid_stage=1 then '招标阶段' when bid.bid_stage=2 then '中标阶段' else '' end as bid_stage
转载于:https://www.cnblogs.com/wcnwcn/p/7244812.html
Case when a=xx then ‘xx’ when a=’zz’ then ‘zz’ else ‘cc’ end as 别名
相当于 if-else if-else
case when bid.bid_stage=1 then '招标阶段' when bid.bid_stage=2 then '中标阶段' else '' end as bid_stage
转载于:https://www.cnblogs.com/wcnwcn/p/7244812.html