SQL Server游标循环读取
摘要:
declare @DJBH varchar(50)declare @DM2 varchar(50)declare @SQLText varchar(3000)declare myCursor cursor for select top 10 DJBH from SPJHD ORDER BY DJBHopen myCursorfetch next from myCursor into @DJBHwhile @@fetch_status=0 begin print 'CategoryId='+cast(@DJBH as varchar(20)) Set @SQLText = 阅读全文
posted @ 2013-04-13 16:35 哈哈哈哈BBA 阅读(331) 评论(0) 推荐(1) 编辑