select case when col <=0 then 0 else col end
Select
CASE WHEN sex = '1' THEN '男'
WHEN sex = '2' THEN '女'
ELSE '其他' END
From tb_user;
select case when col <=0 then 0 else col end
Select
CASE WHEN sex = '1' THEN '男'
WHEN sex = '2' THEN '女'
ELSE '其他' END
From tb_user;