開發中大家應該都做過什麼類似部門管理這樣的功能

不難看出部門之間用fparent關聯
select t
From m_depart t
start with fparent is null
connect by Prior fnum=fparent
下面是查詢結果

差不多了下面還有一個比較常用的with函數
From:http://tw.wingwit.com/Article/program/Oracle/201311/19046.html
開發中大家應該都做過什麼類似部門管理這樣的功能
不難看出部門之間用fparent關聯
下面是查詢結果
差不多了下面還有一個比較常用的with函數