你游标怎么写的啊
declare cursor_name cursor for
select ..
declare
...
open cursor_name
fetch cursor_name into .. --查出几个列就要赋给几个变量
while @@fetch_status=0
begin
fetch cursor_name into ..
end
close cursor_name
dellocate cursor_name
declare cursor_name cursor for
select ..
declare
...
open cursor_name
fetch cursor_name into .. --查出几个列就要赋给几个变量
while @@fetch_status=0
begin
fetch cursor_name into ..
end
close cursor_name
dellocate cursor_name
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货