sql 中如何查询一个字段符合两个条件

例如:在book表中查询bno 满足借了书1没借书2的读者

第1个回答  2013-09-09
select 借书人  from  book 
where  书名=书1  
and not exist
(select * from book where 书名=借书2)

第2个回答  2013-09-09
select * from table where book1=1 and book2=0
相似回答