摘要
在数据库应用系统开发中,经常要对层次结构数据进行管理,实现的方法有多种,比较分析了每种方法的优缺点。利用Mi—crosoft SQL Server 2005中的新功能公用表表达式(CTE,Common Table Expression)进行递归查询,结合组织机构管理的具体实例,给出了使用CTE进行递归查询的组织机构管理的通用实现方法。
In develop of database application system, often manages the hierarchical structure data, there are many methods, analyses the advantages and disadvantages of each method by comparing. Implements recursive query with the common table expression the new function of Microsoft SQL Server 2005, on the example of organizations management, provides the general way of how to manage organizations through recursive query using CTE.
作者
张申勇
吴方
廖继勇
肖友清
乐小燕
ZHAGN Shen-yong, WU Fang, LIAO Ji-yong, XIAO You-qing, LE Xiao-yan(1.School of Computing, Beijing Institute of Technology, Zhuhai 519085, China; 2.Anhui Telecom Planning and Designing CO.LTD, Hefei 230031, China)
出处
《电脑知识与技术》
2011年第10期6821-6824,6830,共5页
Computer Knowledge and Technology
关键词
关系数据库
层次数据
递归查询
公用表表达式
组织机构管理
relational database
hierarchical structure data
recursive query
common table expression (CTE): organizations management