sql%NOTFOUND  update,delete操作時沒找到符合條件的記錄。
sql%FOUND     SELECT columnname INTO ﹐update,delete找到符合條件的記錄

解决方案 »

  1.   

    sql%rowcount   --判定当前更新记录数
    sql%isopen     --判定当前游标是否打开
      

  2.   

    查了817的手册,只有这四个,如果还有可能是9i的新特性?
    SQL
    This is the name of the implicit SQL cursor. %FOUND
    This attribute yields TRUE if an INSERT, UPDATE, or DELETE statement affected one or more rows or a SELECT INTO statement returned one or more rows. Otherwise, it yields FALSE. %ISOPEN
    This attribute always yields FALSE because Oracle closes the SQL cursor automatically after executing its associated SQL statement. %NOTFOUND
    This attribute is the logical opposite of %FOUND. It yields TRUE if an INSERT, UPDATE, or DELETE statement affected no rows, or a SELECT INTO statement returned no rows. Otherwise, it yields FALSE. %ROWCOUNT
    This attribute yields the number of rows affected by an INSERT, UPDATE, or DELETE statement, or returned by a SELECT INTO statement.