摘要:
游标格式: Declare 游标名 cursor for Select 字段1,字段2,...,字段n from 表名open 游标名fetch next from 游标名 into @变量1,@变量2,...,@变量n while @@FETCH_STATUS=0 begin ... 你的处理语句 ... fetch next from 游标名 into @变量1,@变量2,...,@变量n end close 游标名 deallocate 游标名 阅读全文
posted @ 2012-03-15 11:12
眯妖
阅读(249)
评论(1)
推荐(0)

浙公网安备 33010602011771号