这个语句怎么写? select * from tableName where when A=A and C and B--这样不行吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tableName Where ((条件A and 条件C) or not 条件A) and 条件B 如果条件A成立,则也要满足条件c和条件b,是这意思吗? select * from 表 where (条件A and 条件C and 条件B) or not 条件A --例如:条件A为:a=1,条件B为:b=1,条件C为:c=1select * from 表 where (a=1 and b=1 and c=1) or not(a=1) 是的,如果A成立,那么条件要满足B和C如果A不成立,那么只满足条件B就行了 select * from 表 where (条件A and 条件C and 条件B) or (not 条件A and 条件B) select * from tableName where (Case A when A then C and B else b end ) 表中联合主键的问题 急!!!sqlserver2005动态创建分区,请大侠们指教!!!多谢! openquery问题 sql作业,表之间数据转移 存储过程问题,请解答,初学! 巨简单 用游标如何实现这样的功能 提一个常见的问题 触发器的问题 弱智的SQL语句问题,大家帮帮忙 存储过程能否应用类似触发器中的inserted deleted 触发器问题
select * from 表 where (a=1 and b=1 and c=1) or not(a=1)
如果A不成立,那么只满足条件B就行了