select a,b
from *
where a<>null and case a(when '1' then b='1' )请问下这个语句为什么总要报=号错误?
我想实现的就是,如果a=1的情况下,我再使用判断B的这个条件
from *
where a<>null and case a(when '1' then b='1' )请问下这个语句为什么总要报=号错误?
我想实现的就是,如果a=1的情况下,我再使用判断B的这个条件
--tryselect a,b
from tbName
where a is not null and (case when a='1' then b else '0' end)='1'
from tbName
where a is not null and (case when a='1' then b else '0' end)='1'