oracle 通过父类查找子类 prior

 select * from M_SI_ITEM start with ITEM_code = 'elecReleaseHighVoltage' connect by prior SUP_ITEM_CODE = ITEM_code;  


//ITEM_code 子类

//SUP_ITEM_CODE 父类

你可能感兴趣的:(sql,oracle)