当前位置: 代码迷 >> Java Web开发 >> 急为什么总是报错''附近有语法异常
  详细解决方案

急为什么总是报错''附近有语法异常

热度:93   发布时间:2016-04-17 13:04:17.0
急!为什么总是报错''附近有语法错误
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相过流 '
  相关解决方案