DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Capture count from UPDATE/DELETE

  1. #1
    Join Date
    Dec 2001
    Location
    Keene, NH
    Posts
    510
    (9i, Rel 2, Java Application)

    Is there an Oracle construct that captures the count from a previous UPDATE or DELETE statement? (I know that Sybase and SQL Server have such a construct).

    One way to do this in an application is to run the same WHERE clause in a SELECT count(*) query. I'd rather not do this.



  2. #2
    Join Date
    Apr 2001
    Location
    Czechia
    Posts
    712
    Is it Java?
    Do you use the java.sql.Statement or java.sql.PreparedStatement interfaces?
    They have the executeUpdate(String sql) method that returns number of rows affected by INSERT, UPDATE or DELETE statements.
    Ales
    The whole difference between a little boy and an adult man is the price of toys

  3. #3
    Join Date
    Dec 2001
    Location
    Keene, NH
    Posts
    510

    Thumbs up

    Yes, we do.

    I am the DBA and will forward this link the Java developer who need this.

    Thank You!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width