Oracle关联自己
Oracle关联自己Java代码SELECT T.ID,CASEWHEN T.PARENT_ID = 0 THENT.NAMEELSET2.NAMEEND AS NAME,CASEWHEN T.PARENT_ID = 0 THENT.RELSET2.REND AS R,D.NAME AS RNAMEFROM INFO TLEFT JOIN INFO T2ON T.PARENT_ID = T2.IDLEFT JOIN DOMAIN DON (T.R || T2.R) = D.ID