Number of rows affected by an UPDATE in PL/SQL

后端 未结 6 605
暖寄归人
暖寄归人 2020-11-28 22:05

I have a PL/SQL function (running on Oracle 10g) in which I update some rows. Is there a way to find out how many rows were affected by the UPDATE? When executing the query

6条回答
  •  囚心锁ツ
    2020-11-28 22:37

    alternatively, SQL%ROWCOUNT you can use this within the procedure without any need to declare a variable

提交回复
热议问题