随笔分类 - SQL
摘要:declare mycursor cursor for select O_ID,A_Salary from AddSalaryopen mycursorfetch next from mycursor into @O_ID,@A_Salary --0 fetch语句成功 ---1 fetch语句失败或此行不在结果集中 ---2被提取的行不存在while (@@fetch_status=0) begin --显示出我们每次用游标取出的值 print '游标成功取出一条数据' print @O_ID print @A_Salary --用游标去取下一条记录 fe...
阅读全文

浙公网安备 33010602011771号