会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
页首Html代码
J.Z
Dreams are one of those things that keep you going and happy.
博客园
首页
新随笔
联系
订阅
管理
2013年4月21日
sql server在存储过程中使用游标和事务
摘要: create PROCEDURE pro_test@classID intASBEGIN SET NOCOUNT ON; begin tran --开始事务 declare @error int; --临时变量 declare @id int declare mycursor cursor --定义游标 for select id from test where classID=@classID --将数据导入游标 open mycursor ...
阅读全文
posted @ 2013-04-21 15:36 binsite
阅读(666)
评论(0)
推荐(0)
编辑
公告
页脚Html代码