当前位置:网站首页>Oracle uses an SQL to find out which data is not in a table
Oracle uses an SQL to find out which data is not in a table
2022-06-27 08:25:00 【Yabingshi】
Ideas : Convert these data strings into multiline records , Then compare .
Refer to the :oracle How to convert a string to multiple lines _ Yabingshi's blog -CSDN Blog
# Find out SMITH,jiao,zhangsan,lisi Which of these people are not there scott.emp in
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)

边栏推荐
猜你喜欢

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

Recognize the ordering of O (nlogn)
![[10. difference]](/img/15/ffd93da75858943fe887de1718e0f6.png)
[10. difference]

2022.06.26 (LC Luo 6101 Luo determines whether the matrix is an X matrix)

lvgl 说明3关于lvgl guider的使用

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

oracle用一条sql查出哪些数据不在某个表里

oracle怎样将字符串转为多行

关联GIS:条条道路通UE5城

SPARQL基础入门练习
随机推荐
[ 扩散模型(Diffusion Model) ]
Understanding mvcc in MySQL transactions is super simple
All tutor information on one page
盲测调查显示女码农比男码农更优秀
Helix QAC更新至2022.1版本,将持续提供高标准合规覆盖率
L'enquête en aveugle a montré que les femmes étaient meilleures que les hommes.
L'introduction en bourse de Wild Wind Pharmaceutical a pris fin: Yu pinzeng, qui avait l'intention de lever 540 millions de RMB, a effectué un investissement P2P.
【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
If xn > 0 and X (n+1) /xn > 1-1/n (n=1,2,...), Prove that the series Σ xn diverges
No matter how good LCD and OLED display technologies are, they cannot replace this ancient display nixie tube
[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
Win10 how to manage startup items?
vim 从嫌弃到依赖(20)——global 命令
浏览器的markdown插件显示不了图片
2022 love analysis · panoramic report of it operation and maintenance manufacturers
【原创】TypeScript字符串utf-8编码解码
一种太阳能电荷泵供电电路的方案设计
Eight misunderstandings, broken one by one (final): the cloud is difficult to expand, the customization is poor, and the administrator will lose control?
Blind survey shows that female code farmers are better than male code farmers
100%弄明白5种IO模型