참조사이트 http://www.webxpertz.net/forums/showthread.php?t=23063http://www.javascript-fx.com/post/jscity/org/index.html내가 약간 수정한 것1. 데이터 USE [test] GO /****** 개체: Table [dbo].[org] 스크립트날짜: 01/22/2009 10:43:34 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[org]( [org_id] [int] NOT NULL, -- 식별ID [parent_org_id] [int] NULL, -- 부모ID [org_name] [nvarchar](20) NOT NULL, -- 이름 [org_order_no] [int] NULL -- 같은레벨정렬순서 ) ON [PRIMARY] GO -- 조직도데이터조회저장프로시저 create proc dbo.get_org as with tree(org_id, parent_org_id, org_name, org_o.......
↧