当前位置:网站首页>oracle用一条sql查出哪些数据不在某个表里
oracle用一条sql查出哪些数据不在某个表里
2022-06-27 08:08:00 【雅冰石】
思路:将这些数据字符串转换为多行记录,然后再进行对比。
参考了:oracle怎样将字符串转为多行_雅冰石的博客-CSDN博客
#查出SMITH,jiao,zhangsan,lisi这些人中哪些人没在scott.emp里
select * from(
with a as
(
select ',SMITH,jiao,zhangsan,lisi' name
from dual
)
select regexp_substr(name,'[^,]+',1,rownum) name
from a
connect by rownum<=length(regexp_replace(name,'[^,]+'))
)
where name not in (select ename from scott.emp)

边栏推荐
- 认识O(NlogN)的排序
- Closure problem
- Windows下mysql-8下载、安装、配置教程
- [notes on c++ primer] Chapter 3 string, vector and array
- The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
- ServletConfig与ServletContext
- 【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst
- [daily practice] realization of product card animation effect
- "Short video" Linxia fire rescue detachment carries out fire safety training
- Win10 how to manage startup items?
猜你喜欢

Helix QAC更新至2022.1版本,将持续提供高标准合规覆盖率

Preliminary understanding of C #

【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo

大厂工作十年,年薪40万突然被裁员,公司想抛弃你,一分情面都不会留

游戏六边形地图的实现

爬一个网页的所有导师信息

Testing network connectivity with the blackbox exporter

How to view program running time (timer) in JS

游戏资产复用:更快找到所需游戏资产的新方法

【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
随机推荐
安装jenkins
JVM层次上的对象的创建过程和内存布局
lvgl 说明3关于lvgl guider的使用
并发编程JUC的AQS底层源码
Futures reverse Documentary - training for traders
MySQL环境变量配置的教程
JVM常见的垃圾收集器
JS to determine whether the result is qualified, the range is 0-100, otherwise re-enter
JS, and output from small to large
无论LCD和OLED显示技术有多好,都无法替代这个古老的显示数码管
参考 | Win11 开启热点之后电脑不能上网
What are the specialties of database system engineers?
c的时间函数算效率
Binary tree structure and heap structure foundation
(resolved) the following raise notimplementederror occurs when Minet tests
MySQL environment variable configuration tutorial
2022爱分析· IT运维厂商全景报告
Ue5 magic power - POI solution
並發編程JUC的AQS底層源碼
05 观察者(Observer)模式