日期:2014-05-16  浏览次数:20374 次

一个树查询例子

SELECT R.A_UID, R.A_TYPE, R.A_NAME, R.BELONG_A_UID, R.A_SUSPEND
? FROM T_ACCOUNT R
?WHERE R.BELONG_A_UID != 'superadmin'
?START WITH R.A_UID = 'admin'
CONNECT BY PRIOR R.A_UID = R.BELONG_A_UID
?????? AND R.A_TYPE != 'A'
?ORDER BY R.A_TYPE ASC