日期:2014-05-18  浏览次数:20699 次

急!为什么总是报错''附近有语法错误
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