中国开发网: 论坛: 程序员情感CBD: 贴子 619320
pcplayer
where 里面写 case 该怎么写啊?我有2种不同的情况,需要2个不同的 where 条件语句。
我的 where 需要条件,比如类似:

select A.* where

case
when A.Y=1 then A.X=0
when A.Y=0 then A.X>0
end

但我这样写,语法都通不过.

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录