-
CONNECT BYSQL 2020. 7. 3. 17:33
SELECT LPAD(' ', 3 * LEVEL - 3) || ename NAME, LEVEL, empno, mgr
FROM emp
START WITH ename = 'KING'
CONNECT BY PRIOR empno = mgr;
SELECT LPAD(' ', 3 * LEVEL - 3) || ename NAME, LEVEL, empno, mgr
FROM emp
START WITH ename = 'KING'
CONNECT BY PRIOR empno = mgr;