急!为什么总是报错''附近有语法错误
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
为什么总是报 ' '附近有语法错误?
[解决办法]
UP
[解决办法]
select *from hblszmsj//少一个空格select * from hblszmsj
试试把那些注释的去了