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