oracle递归查询树的SQL语句

来自互联网

 

SELECT * FROM a_ParkingLot A
WHERE A.REGIONID IN(
    SELECT r.ID FROM a_region r
    START WITH r.id='CD79FF2A1E5E49A9B1EAD545A0E05D2C'
    CONNECT BY PRIOR r.ID=r.parentid
)

posted @ 2015-03-11 16:46  屌丝大叔的笔记  阅读(470)  评论(0编辑  收藏  举报