Sql%rowcount

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anju15
    New Member
    • Sep 2008
    • 1

    Sql%rowcount

    Hi , i have a cursor for deletion, updation,and insertion and inside each iam using sql%rowcount to get the number of rows affected. Now the problem is, the delete query is returning 0 records, update is returning 1 record and insert query actually have 0 records , but still its giving the count as 1. is there any way to reset the value of sql%rowcount to return no.of rows affeceted by last dml.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    you can't reset the value of sql%rowcount .

    Comment

    • Dave44
      New Member
      • Feb 2007
      • 153

      #3
      after each individual statement save the value of sql%rowcount in a UDV for later examination or use.

      Comment

      Working...