1.递归查询
SELECT *
FROM tableName
START WITH 开始条件 CONNECT BY prior 递归条件
Egg:
select *
from employee
start with mangerid = 'king'
connect by prior empid = mangerid
1.递归查询
SELECT *
FROM tableName
START WITH 开始条件 CONNECT BY prior 递归条件
Egg:
select *
from employee
start with mangerid = 'king'
connect by prior empid = mangerid