Oracle递归查询

SQL:

select * from PT_ORG_INFO START WITH id='102' CONNECT BY PRIOR id=par_id
View Code

连表递归查询SQL:

select info.* 
from PT_CAMERA_INFO info
join (=par_id) org on org.id=info.org_id
where 1=1
View Code

 

相关文章

文章浏览阅读773次,点赞6次,收藏9次。【代码】c# json字符...
文章浏览阅读8.7k次,点赞2次,收藏17次。此现象一般定位到远...
文章浏览阅读2.8k次。mysql脚本转化为oracle脚本_mysql建表语...
文章浏览阅读2.2k次。cx_Oracle报错:cx_Oracle DatabaseErr...
文章浏览阅读1.1k次,点赞38次,收藏35次。本文深入探讨了Or...
文章浏览阅读1.5k次。默认自动收集统计信息的时间为晚上10点...