怎么把select a from b 显示结果作改动,把显示的0变为是,1变为否
select a from b 显示结果为
a
0
0
1
0
1
怎么把它的显示作改动,把显示的0变为是,1变为否
------解决方案--------------------select (case a when 0 then '是 ' else '否 ' end) as a from b
------解决方案--------------------select case a when 1 then '是 ' else '否 ' end from b