发布网友
共1个回答
热心网友
select
*
from
table
where
(a
is
null
and
b=c)
or
(a
is
not
null
and
b=d)
把两个where条件用or连接起来就行了,不管几个,只是if
else关系就用or连接,逻辑关系是一样的,不信你自己仔细看