create table a1 (
batch varchar2(20)
)
select batch ,case batch when 'pj ' then 'yes ' else 'no ' end from a1
为何这样?
------解决方案--------------------
select batch ,case when batch = 'pj ' then 'yes ' else 'no ' end from a1
这样写的,多看看书
------解决方案--------------------
按照楼上的方法,when写错地方了。
------解决方案--------------------
select batch ,case when batch = 'pj ' then 'yes ' else 'no ' end from a1