11智能在线
新记
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
<上一页
1
2
相似回答
大家正在搜
相关问题
SQL语句查询条件一个字段=多个值怎么写
SQL语句 如何查找一张表里两个字段符合条件的内容
sql 如何查询在将表A中的某一字段同时符合表B中2个字段的...
SQL语句中怎样同时查询一个表中的两个字段
SQL语句如何根据两个表的某个字段相同为条件查询
sql如何根据一个字段的多个值查询
sql 对同一字段进行模糊查询时如何将两个条件写入一个lik...
sql中查询一个字段在四个不同条件下怎么查出对应的为四列?