字段有
a,b,c
现在要求(b=x AND c=True)AND(a=x AND c=False),请问这样的select语句该怎么写?
数据库用Access我尝试过使用intersect,但好像不支持
a,b,c
现在要求(b=x AND c=True)AND(a=x AND c=False),请问这样的select语句该怎么写?
数据库用Access我尝试过使用intersect,但好像不支持
调试欢乐多
select * from BIAO where a="+x+" and c=True and b=(select a from BIAO where b="+x+" and c=False)
提示:子查询最多能返回一个记录
select * from BIAO where b="+x+" and c=False
既然要c=true ,干吗还要同时为false呢,逻辑上就通不过