期刊文献+
共找到2篇文章
< 1 >
每页显示 20 50 100
Application of Recursive Query on Structured Query Language Server
1
作者 荀雪莲 ABHIJIT Sen 姚志强 《Journal of Donghua University(English Edition)》 CAS 2023年第1期68-73,共6页
The advantage of recursive programming is that it is very easy to write and it only requires very few lines of code if done correctly.Structured query language(SQL)is a database language and is used to manipulate data... The advantage of recursive programming is that it is very easy to write and it only requires very few lines of code if done correctly.Structured query language(SQL)is a database language and is used to manipulate data.In Microsoft SQL Server 2000,recursive queries are implemented to retrieve data which is presented in a hierarchical format,but this way has its disadvantages.Common table expression(CTE)construction introduced in Microsoft SQL Server 2005 provides the significant advantage of being able to reference itself to create a recursive CTE.Hierarchical data structures,organizational charts and other parent-child table relationship reports can easily benefit from the use of recursive CTEs.The recursive query is illustrated and implemented on some simple hierarchical data.In addition,one business case study is brought forward and the solution using recursive query based on CTE is shown.At the same time,stored procedures are programmed to do the recursion in SQL.Test results show that recursive queries based on CTEs bring us the chance to create much more complex queries while retaining a much simpler syntax. 展开更多
关键词 structured query language(SQL)server common table expression(CTE) recursive query stored procedure hierarchical data
下载PDF
ORACLE/MYSQL数据库比较应用教学法综述 被引量:5
2
作者 俞海 《电脑知识与技术》 2017年第11X期1-3,共3页
当前,数据库教学要紧跟时代发展需要,要选择市场使用比较广泛的二种主流数据库厂商,进行数据库的各内容或类型比较、函数比较、SQL语法的使用差别,创建使用存储过程的差别等。通过比较法进行教学讲解,不仅使学生在比较学习法中进行体会... 当前,数据库教学要紧跟时代发展需要,要选择市场使用比较广泛的二种主流数据库厂商,进行数据库的各内容或类型比较、函数比较、SQL语法的使用差别,创建使用存储过程的差别等。通过比较法进行教学讲解,不仅使学生在比较学习法中进行体会,同时在相应的实验环境中进行试验,这样就能做到实践,心中有数。该文重点介绍数据库教学中的比较用法,通过比较,对数据库的基本概念和SQL操作,有更深的理解和印象,对不同的数据库(oracle和mysql)SQL的基本操作语法以及存储过程的创建中进行比较,对数据库教学中融入比较概念,面向应用和开发的角度,对数据库教学及应用开发的有较好的引导作用。 展开更多
关键词 数据库 比较法 SQL stored procedure ORACLE MYSQL
下载PDF
上一页 1 下一页 到第
使用帮助 返回顶部