- 博客(2)
- 收藏
- 关注
not exists 和not in等价
select * from A where not exists ( select * from B where A.id = B.id )和 select * from A where A.id not in ( select * from B)
2010-03-23 16:00:23
329
oracle中minus的用法
转自:http://blog.csdn.net/LJY_AINILU/archive/2008/10/09/3043374.aspx 这两天写程序的时候用到了两个表格数据的比较,学习到了minus的用法,小小的总结了一下 minus运算的主要功能是: 在进行两个表格或者两个查询结果的时候 , 返回在第一个表格/查询结果中与第二个表格/查询结果不相同的记录 比如A表中数据如下: ID ...
2010-03-23 15:53:31
545
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅