1、case when方法:select (case 字段名 when '0' then '否' when '1' t茑霁酌绡hen '是' end) as 字段名 from 表名;
2、decode方法:select decode(字段名,0,'否',1,'是') as 字段名 from 表名;
3、结果显示如图:
1、case when方法:select (case 字段名 when '0' then '否' when '1' t茑霁酌绡hen '是' end) as 字段名 from 表名;
2、decode方法:select decode(字段名,0,'否',1,'是') as 字段名 from 表名;
3、结果显示如图: