文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络网络编程MSSQL一些在SQL帮助中找不到的系统存储过程-System stored procedures
精品推荐
特别推荐
·SQL SERVER 2005中的同步复制技术
·SQL Server企业管理器和查询分析器简介
·常用SQL语句词典
·结束SQL注入隐患3招
·掌握SQL Server数据库的实用技巧
·SQL的简单查询
·快速解决SQL Server“安全疑难”相关问题
·SQL Server 2005:你应知道的13件事
热点TOP10
·认识VF--Visual FoxPro 漫谈
·MS SQL Server中的CONVERT日期格式化大全
·网络克隆教程
·SQL2000 数据库安装说明
·基于SQL Server的WEB应用程序注入攻击详细介绍
·安装Ms SQL Server 2005 开发版时出现性能计数器要求安装错误的解决办法
·SQL Server 2005 Express Edition安装步骤详解
·SQL SERVER中字段类型及说明

一些在SQL帮助中找不到的系统存储过程-System stored procedures

日期:2007年7月14日 作者: 查看:[大字体 中字体 小字体]

Can be used to request inserts and positioned updates or deletes on API server cursors.

Syntax
sp_cursor [@cursor =] cursor_handle,
    [@optype =] optype,
    [@rownum =] rownum,
    [@table =] 'table'
    {, [@param1 =] value1 [,...n] }

Arguments
[@cursor =] cursor_handle
Is a cursor handle obtained by calling sp_cursorcreate. cursor_handle is int, with no default.
[@optype =] optype
Is a the operation to perform. optype is int, with no default and can be one of these values.

Value Description
1 Update row (?).
4 Insert row.
33 Update row.
34 Delete row.

[@rownum =] rownum
Is the number of the row to update in the fetch cache. rownum is int, with no default.
[@table =] 'table'
Is the name of the table to update (an empty character string seems to be ok). table is sysname, with no default.
Return Code Values
0 (success) or 1 (failure).

Result Sets
None.

Permissions
Execute permissions default to the public role.

Example
USE pubs

 

-- Create a dynamc cursor

DECLARE @cursor INT

EXEC sp_cursoropen @cursor OUTPUT, 'SELECT * FROM myTable', 2, 8193

 

-- Fetch the next 2 lines; this puts lines 1 and 2 in the fetch buffer

EXEC sp_cursorfetch @cursor, 2, 0, 2

 

-- Update the second line in the fetch buffer

EXEC sp_cursor @cursor, 33, 2, '', @intCol=5, @charCol='x'

 

-- Close the cursor

EXEC sp_cursorclose @cursor

 

sp_cursorprepare
Used to prepare a parameterized cursor statement.

Syntax
sp_cursorprepare [@cursor =] statement_handle OUTPUT,
     [@paramdef =] N'parameter_name data_type [,...n]',
     [@stmt =] N'stmt',
     [@options =] options,
    [, [@scrollopt =] scroll_options OUTPUT]

上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 下一页 



上一篇:WindowsXP+IIS+PHP5+MySQL5+Zend+GD库+phpMyAdmin+PHPWind 5.3 安装教程

下一篇:php+mysql 获取数据库中的记录(特别是高效的分页功能)

相关文章:
·无线攻防:破解WEP密钥过程全解
·操作系统启动很慢真实原因
·Vista SP2 将帮助微软回到正轨
·VB+Access设计图书管理系统
·[大话西游2]养育系统的分析
·量身定制IT运维管理系统
·不用重装XP系统就可以解决全部故障
相关软件:
·优秀企业网站系统软件源码免费版V2009
·公司企业网站管理系统模板功能强大版
·远潮自我形象设计系统
·如何安装双系统
·linux操作系统视频教程
·微软MSDN版的windows操作系统大全 DVD 真正原版
·飞达网上商城购物网站系统源代码网页模板正式版

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.viphot.com
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.viphot.com All Rights Reserved. 鄂ICP备05000083号Powered by:viphot