//没相同数据意思表達不清?不相同記錄還是不相同的bookid?根據你的意思,覺得應該這樣寫select bookid from user where bookid not in(select bookid2 from info where info.isok=1)
解决方案 »
- 求助:SQL语句写约束。
- 请问存储过程的eg:是什么意思
- |zyciis| 一条表对表更新语句要怎么写,谢谢
- 请教“制单日期”与“会计期”的设计问题
- ******请问,我希望得到这样的查询结果,Sql语句应该怎么写?******
- Sqlserver中varchar字段容量问题
- 比较怪异的数据查询问题。在线等.....
- 抛分求教一个数据更新查询问题
- 安装sqlserver2005失误 成功删除后(c:下文件,注册表也全部清理) 再装只有“工作站组件,联机,开发工具”
- 查询a表中a1,a2,a3和b表中b1,b2,b3不相同的记录的语句该怎么写呢?
- 数据库问题!!!
- 新手,sql建立索引和关系字段的问题
select bookid from user
where bookid not in(select bookid2 from info)
and isok=1
select bookid from user where not exists(select bookid2 from user.id = info.id and info where info.isok=1)
select bookid from user where not exists(select bookid2 from user.id = info.id and info where info.isok=1)