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

边栏推荐
- Etcd教程 — 第五章 Etcd之etcdctl的使用
- Refer to | the computer cannot access the Internet after the hotspot is turned on in win11
- sql注入之order by注入
- JVM层次上的对象的创建过程和内存布局
- 参考 | 升级 Win11 移动热点开不了或者开了连不上
- [batch dos-cmd command - summary and summary] - output / display command - echo
- [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
- Mapping of Taobao virtual product store opening tutorial
- 【12. 最大连续不重复子序列】
- Reference | upgrade win11 mobile hotspot can not be opened or connected
猜你喜欢

Programming life - what do you think of the 35 year old bottleneck of programmers?

Online text digit recognition list summation tool

索引+sql练习优化

野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
![【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法](/img/05/19299c47d54d4ede95322b5a923093.png)
【批处理DOS-CMD命令-汇总和小结】-批处理命令中的参数%0、%1、%2、%[0-9]、%0-9和批处理命令参数位置切换命令shift,dos命令中操作符%用法

【c ++ primer 笔记】第4章 表达式

参考 | Win11 开启热点之后电脑不能上网

Lvgl description 3 about the use of lvgl Guide

JS find the number of all daffodils

Preliminary understanding of C #
随机推荐
"Short video" Linxia fire rescue detachment carries out fire safety training
Index +sql exercise optimization
[c++ primer notes] Chapter 4 expression
【12. 最大连续不重复子序列】
第6届蓝桥杯
[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,
Windows下mysql-8下载、安装、配置教程
JS, and output from small to large
Implementation of game hexagon map
05 观察者(Observer)模式
Binary tree structure and heap structure foundation
期货反向跟单靠谱吗?
参考 | 升级 Win11 移动热点开不了或者开了连不上
[paper reading] internally semi supervised methods
Refer to | the computer cannot access the Internet after the hotspot is turned on in win11
Experience record of Luogu's topic brushing
(笔记)Anaconda-Navigator闪退解决方法
Rust async: SMOL source code analysis -executor
Code source AQS sous - jacent pour la programmation simultanée juc
c的时间函数算效率