sql语句中,有一个字段是布尔型,但是我想通过select查出来,显示的不是0或者1,而显示是或者否
select decode(字段,1,'是',0,'否') as value from table
或
select (case 字段 when 1 then '是' when 0 then '否' end) as value from table
select decode(字段,1,'是',0,'否') as value from table
或
select (case 字段 when 1 then '是' when 0 then '否' end) as value from table