好象@@fetch_status全局变量和sybase中用的不同。

解决方案 »

  1.   

    fetch c1 into @e
    while @@Sqlstatus=0  
        
      

  2.   

    不懂sybase
    查查它的帮助吧
    语言上的出入
      

  3.   

    我改成
      fetch c1 into @e
      while @@Sqlstatus=0 
    但是显示
    Server Message:  Number  7412, Severity  10
    Procedure 'test', Line 31:
    Space available in the log segment has fallen critically low in database 'tempdb'.  All future modifications to this database will be suspended until the log is successfully dumped and space becomes available. 
    Server Message:  Number  7415, Severity  10
    Procedure 'test', Line 31:
    The transaction log in database tempdb is almost full.  Your transaction is being suspended until space is made available in the log.