not in改写关联无需考虑重复数据
2024-09-12 08:26:14
SQL> select * from a1; ID NAME
---------- ----------
1 a
1 a
2 a
3 a SQL> select * from a2; ID
----------
2
3
2 SQL> select * from a1 where id not in (select id from a2); ID NAME
---------- ----------
1 a
1 a SQL> select a1.* from a1,a2
2 where a1.id=a2.id(+)
3 and a2.id is null; ID NAME
---------- ----------
1 a
1 a
最新文章
- 工厂模式 - Factory
- 使用js脚本批量下载慕课网视频
- ASP.NET 上传文件最大值调整
- struts 用拦截器进行用户权限隔离,未登录用户跳到登录界面 *** 最爱那水货
- BZOJ1932——[Shoi2007]Setstack 集合堆栈机
- 用javascript判断一个html元素是否存在的五种方法:
- android 基础项目及开发出现:error opening trace file: No such file or directory错误解决
- ASP.NET 学习博客
- Linux启动或禁止SSH用户及IP的登录
- try/catch异常捕捉
- pyqt4 写动画不能播放问题集合
- Java数据类型之byte、char
- 移动端跨平台方案对比:React Native、weex、Flutter
- Vue使用的一些实例
- 迅为-i.MX6Q核心板_四核工业级
- ASP.NET MVC实现Excel文件的上传下载
- 2017-07-20 在Maven Central发布中文API的Java库
- GUI_事件监听机制与ActionListener演示
- pgm16
- Executor框架(七)Future 接口、FutureTask类
热门文章
- ubuntu15.10下sublime text3 无法输入中文解决办法
- Linux文件/目录权限整理
- Session,ViewState用法
- 在fragment中调用SharedPreferences
- mvc5 + ef6 + autofac搭建项目(四).1视屏上传生成截图
- [转载]SQL字符串处理函数大全
- ZOJ 1057 Undercut(简单模拟)
- 打印十进制数n 递归
- [转]Python核心模块——urllib模块
- php5下载,apache2.4与php5整合