-- not in 的替代写法
select col from table1 where col not in
(select col from table2);

select col,table2.col temp_col
from table1 left join table2
on table1.col = table2.col
where temp_col is null;

-- in 的替代写法
select col from table1 where col in
(select col from table2);

select col,table2.col temp_col
from table1 left join table2
on table1.col = table2.col
where temp_col is not null;

转载:https://www.cnblogs.com/qinjf/p/8436109.html

最新文章

  1. [No00004F]史上最全Vim快捷键键位图(入门到进阶)
  2. DirectSound学习(三)--类、方法、属性翻译
  3. oracle to_date函数(转载)
  4. php异步请求(可以做伪线程)
  5. 3D模型制作
  6. Activity 的 4 种加载模式
  7. C:宏定义的一些格式(怕忘记)
  8. js在函数中未定义的变量的处理
  9. AngularJS1.X学习笔记12-Ajax
  10. JSP面试题都在这里
  11. 211806189杨昊辰 https://www.cnblogs.com/honey1433223/
  12. Python不可变对象
  13. windows多线程同步--临界区
  14. http 返回码 405 解决方案之一
  15. FFT/NTT/MTT学习笔记
  16. 同步 Visual Studio Code 的设置与插件
  17. 带你走近WebSocket协议
  18. 前端面试题1(html)
  19. [java]基于UDP的Socket通信Demo
  20. 2017多校第4场 HDU 6078 Wavel Sequence DP

热门文章

  1. Appium+Python之生成html测试报告
  2. mysql 可重复读
  3. js的validate插件异步效验
  4. 解决 vue-cli构建项目自动打开浏览器问题
  5. 【错误】mysql 出现 "1067 - Invalid default value for 'UPDATE_TIME' " 错误提示的解决办法
  6. linux系统升级openssh
  7. csv导入数据
  8. 在flask服务里面执行adb 安装命令
  9. Oracle12c创建及删除PDB
  10. python中sort与sorted区别