文档介绍:计算机工程 2011 年 9 月
第 37 卷第 17 期
September 2011
Engineering
···软件技术与数据库·软件技术与数据库··· 文章编号:::1000 ———3428(2011)17———0049 ———03 文献标识码:::A 中图分类号:::TP311
基于递归和表函数的一到多数据转换研究
王剑波
(湖南人文科技学院计算机科学技术系,湖南娄底 417000)
摘摘摘要要要:要:::针对关系表达式难以进行霂无限制一到多数据转换的问题,通过关系代数的扩展表达一到多数据转换,采用递归查询和表函数实现
无限制一到多数据转换,在每个输入元组上产生一个或者多个输出元组。递归查询通过创建初始结果,递归获取结果集,并返回最终结果
集;表函数声明变量集合,使用过程体和游标循环访问表,迭代输出元组。实验分析不同参数影响陞因素下有限制和无限制转换的不同方法,
结果表明扩展方法能够改善系统性霆能。
关键词:::关系数据库: ;数据转换;结构化查询语言;递归查询;表函数
Research on One-to-many Data Transformation
Based on Recursive and Table Function
WANG Jian-bo
(Department puter Science and Technology, Hunan University of Humanities, Science and Technology, Loudi 417000, China)
【【【Abstract 】】】Since relational expressions are difficult to execute one
to
many data transformation, the paper expresses one
to
many transformation
by extending relational algebra, the recursive query and the table function should be employed to realize unbounded one
to
many transformation for
producing one or several output tuples over every input tuples. Recursive queries create original results to obtain result sets by recursion and return
final result sets. Table functions declare variable sets and employ a procedure body and cursor to access tables, iterative output tuples. Experiment
analyzes different bounded and unbounded data transformations und