摘要
在进行数据操作时,我们经常会遇到一些直接使用简单的sql语句无法直接处理的问题,如逐一的从某一结果集中读取一条记录进行某种操作的情况,利用sql中的游标功能可以有效的解决这类问题。本文通过对sql游标的研究,介绍了sql游标的基本原理及使用技巧,并结合实际阐述了如何利用游标来进行面向单条记录的数据处理。
During the data operation,we often encounter some problems of simple SQL statement cannot directly solve issues,such as reading a record from the result set one by one to do some operation,the use of the cursor functions in SQL can effectively solve these problems.This article through to the SQL cursor research,introduced the SQL cursor basic principle and use of skills,combined with the reality elaborated how to use the cursor to do the single record data processing.
出处
《科技创新导报》
2012年第28期31-32,共2页
Science and Technology Innovation Herald
关键词
游标
结果集
Cursor
Result set