Oracle
 sql >> Database >  >> RDS >> Oracle

Domanda SQL gerarchica

SELECT  *
FROM    mytable
START WITH
        myid = :id
CONNECT BY
        myparentid = PRIOR myid