Fanr

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年10月23日

摘要: USE AdventureWorksDW2008R2declare @P1 int --游标号码declare @P2 intset @P2=8 --参数[传入参数](可能是游标类型)declare @P3 intset @P3=1 --参数[传入参数](可能是游标锁类型)declare @P4 int --返回行数beginexec sp_cursoropen @P1 output,N'select * from DimCustomer',@P2 output,@P3 output,@P4 outputexec sp_cursorfetch @P1, 16, 1, 100-- 阅读全文
posted @ 2011-10-23 19:41 Fanr_Zh 阅读(310) 评论(0) 推荐(0) 编辑