sql如何判断某值并赋给他另外的值

 

sql如何判断某值并赋给他另外的值

select *,case when xingbie=0 then '' else '' end as xingbie from yishibiao

 

select XingBieHanZi,CASE WHEN(XingBieHanZi='') THEN 1
WHEN(XingBieHanZi='') THEN 0
ELSE 3 END Gender,
*   FROM table

 

posted @ 2022-01-12 17:00  我的未来方程式i  阅读(238)  评论(0编辑  收藏  举报