Oracle递归操作
生活随笔
收集整理的這篇文章主要介紹了
Oracle递归操作
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
需求:找出代理商中沒有掛商家的代理商
簡單SQL如下:
select *from t_proxy tpwhere tp.id not in(SELECT tp.id as p_idFROM t_proxy tpstart with tp.id in (select distinct tm.proxy_idfrom t_merchant tmwhere tm.proxy_id is not null)connect by prior tp.parent_id = tp.id)?
轉(zhuǎn)載于:https://www.cnblogs.com/atomicbomb/p/6773094.html
總結(jié)
以上是生活随笔為你收集整理的Oracle递归操作的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C# 调用C++ dll
- 下一篇: iOS酷我音乐导出工具使用说明和原理介绍