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

边栏推荐
- 「短视频」临夏消防救援支队开展消防安全培训授课
- JS use the switch statement to output the corresponding English day of the week according to 1-7
- 安装jenkins
- 【11. 二维差分】
- 【12. 最大连续不重复子序列】
- lvgl使用demo及说明2
- JS output shape
- Testing network connectivity with the blackbox exporter
- JS output all prime numbers between 1-100 and calculate the total number
- Reference | upgrade win11 mobile hotspot can not be opened or connected
猜你喜欢

洛谷刷题心得记录

Coggle 30 days of ML July competition learning

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

SPARQL基础入门练习

Ready to migrate to the cloud? Please accept this list of migration steps
![【批处理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命令中操作符%用法

JS output shape

Blind survey shows that female code farmers are better than male code farmers

LVGL GUI GUIDER移植代码到STM32

野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
随机推荐
【13. 二进制中1的个数、位运算】
Recognize the ordering of O (nlogn)
期货反向跟单靠谱吗?
【每日一练】产品卡片动画效果的实现
C how to call line and rows when updating the database
PayPal账户遭大规模冻结!跨境卖家如何自救?
[c++ primer notes] Chapter 4 expression
L'enquête en aveugle a montré que les femmes étaient meilleures que les hommes.
win命令行中导入、导出数据库相关表
MySQL environment variable configuration tutorial
並發編程JUC的AQS底層源碼
If xn > 0 and X (n+1) /xn > 1-1/n (n=1,2,...), Prove that the series Σ xn diverges
How to view program running time (timer) in JS
The 6th Blue Bridge Cup
SIG associé: toutes les routes mènent à ue5
JVM common garbage collector
Game asset reuse: a new way to find required game assets faster
JS EventListener
SPARQL基础入门练习
淘宝虚拟产品开店教程之作图篇