oracle SQL

--子查父
select * from  man_menue_hg m
  start with m.mid='43'
  connect by prior m.par_mid = m.mid;
 
--父查子
select * from  man_menue_hg m
       start with m.par_mid = '0'
       connect by prior m.mid = m.par_mid

posted @ 2012-01-10 18:18  七郎  Views(150)  Comments(0Edit  收藏  举报