[ORACLE] 트리구조 만들기

select level, lpad('>', level*2) || group_nm, group_exp
  from tpc_dept
start with dept_cd in (select dept_cd from tpc_dept where pre_dept_cd = '00000')
connect by  prior dept_cd = pre_dept_cd

오라클에서 지원하는 트리구조 함수 START WITH ~ CONNECT BY PRIOR  ~

^^;;

오늘 업무하다가 고객사의 과장님께 들은 것을 글로 옮겨 적는다. ^^;;

2009/01/28 12:41 2009/01/28 12:41

Posted by 가야태자

,
Response
No Trackback , No Comment
RSS :
http://dulihana.cafe24.com/blog/rss/response/83

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

Leave a comment
« Previous : 1 : ... 18 : 19 : 20 : 21 : 22 : 23 : 24 : 25 : 26 : ... 221 : Next »

블로그 이미지

이곳은 가야태자의 일상생활, 사진, 리눅스, 자유, 개발언어, 데이타베이스 등에 대해서 이야기 하는 공간입니다.

- 가야태자

Archives

Calendar

«   2009/11   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Site Stats

Total hits:
248732
Today:
31
Yesterday:
110