declare cursorhb cursor for
select *from hblszmsj
open cursorhb
fetch from cursorhb
into @hbid,@cjsj,@axguoliu
while @@fetch_status=0
begin
if @axguoliu=0
begin
if @axguoliu_temp=0
begin
set @aaxguoliu='A相不过流'
set @axguoliu_temp=@axguoliu
end
else
begin
--set @aaxguoliu='A相恢复过流'
--set @axguoliu_temp=@axguoliu
end
end
else
begin
-- set @aaxguoliu='A相过流'
end
end
为什么总是报''附近有语法错误?
select *from hblszmsj
open cursorhb
fetch from cursorhb
into @hbid,@cjsj,@axguoliu
while @@fetch_status=0
begin
if @axguoliu=0
begin
if @axguoliu_temp=0
begin
set @aaxguoliu='A相不过流'
set @axguoliu_temp=@axguoliu
end
else
begin
--set @aaxguoliu='A相恢复过流'
--set @axguoliu_temp=@axguoliu
end
end
else
begin
-- set @aaxguoliu='A相过流'
end
end
为什么总是报''附近有语法错误?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货