当前位置:网站首页>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)

边栏推荐
- 安装jenkins
- 参考 | 升级 Win11 移动热点开不了或者开了连不上
- SPARQL basic introductory exercise
- Lvgl description 3 about the use of lvgl Guide
- (resolved) the following raise notimplementederror occurs when Minet tests
- How to add data to the back-end database in the form of Excel file on the web page
- After working in a large factory for ten years with an annual salary of 400000 yuan, I was suddenly laid off. If the company wanted to abandon you, it wouldn't leave any kindness
- [batch dos-cmd command - summary and summary] - environment variables, path variables, search file location related instructions - set, path, where, what if there are spaces in the path parameters of
- JS output shape
- How can I import data from Oracle into fastdfs?
猜你喜欢

盲测调查显示女码农比男码农更优秀

Index +sql exercise optimization

JS uses the while cycle to calculate how many years it will take to grow from 1000 yuan to 5000 yuan if the interest rate for many years of investment is 5%

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

MySQL索引详解
![[12. maximum continuous non repeating subsequence]](/img/eb/230cd6062e28374c86863f2122e43b.png)
[12. maximum continuous non repeating subsequence]

After working in a large factory for ten years with an annual salary of 400000 yuan, I was suddenly laid off. If the company wanted to abandon you, it wouldn't leave any kindness

2022爱分析· IT运维厂商全景报告

Redis的事务

JS output shape
随机推荐
八大误区,逐个击破(终篇):云难以扩展、定制性差,还会让管理员失去控制权?
ACM course term summary
(原创)自定义Drawable
JVM常见的垃圾收集器
Code source AQS sous - jacent pour la programmation simultanée juc
University database mysql
[batch dos-cmd command - summary and summary] - how to distinguish the internal command and external command of CMD, and the difference between CMD command and run (win+r) command,
Redis五种基本类型
Recognize the ordering of O (nlogn)
05 观察者(Observer)模式
Futures reverse Documentary - training for traders
并发编程JUC的AQS底层源码
MSSQL how to export and delete multi table data using statements
MySQL environment variable configuration tutorial
Blind survey shows that female code farmers are better than male code farmers
win命令行中导入、导出数据库相关表
After working in a large factory for ten years with an annual salary of 400000 yuan, I was suddenly laid off. If the company wanted to abandon you, it wouldn't leave any kindness
MySQL锁详解
Etcd教程 — 第五章 Etcd之etcdctl的使用
【12. 最大连续不重复子序列】