游标使用示例:使用步骤:1、定义游标2打开游标3提取数据4关闭数据例子: 取出CategoryID='1' 的商品的编号和名称:游标使用示例declare ProductCursor cursorfor select ProductID,ProductName from Products where CategoryID='1'declare @ProductID char(4)declare @ProductName char(200)fetch from ProductCursor into @ProductID,@PRoductNamewhile @@FE Read More
posted @ 2012-04-02 16:34 木子易 Views(275) Comments(0) Diggs(0) Edit