Oracle查询层级的  一个表里 通过一个parentid连接

 

select * FROM  A_MERIATILA start with id=520 CONNECT by prior id=PARENTID
order by id;