日期:2014-05-17  浏览次数:20509 次

这条语句错在哪里?

select 
case(SELECT Count(*) FROM tableA where States=2 
and ID = '200008') =(SELECT Count(*) FROM tableA 
where ID = '200008') when 'AllOver' else 'NotAllOver' end

这条语句错在哪里?

------解决方案--------------------
你case里=两边都是整型 when 怎么有出来字符串了