Results 1 to 3 of 3
  1. #1
    drimades is offline Member
    Join Date
    Mar 2012
    Posts
    27
    Rep Power
    0

    Default Number of affected rows from update statement

    How can I find the number of rows affected by an update statement:

    stmt.executeUpdate(sqlstring) ?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Number of affected rows from update statement

    What does the API say?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default Re: Number of affected rows from update statement

    To give another hint, the return value of that method has a meaning. According to the api what is that meaning?

Similar Threads

  1. How to update rows in 2 D arrays?
    By udayjava in forum New To Java
    Replies: 2
    Last Post: 02-13-2012, 06:38 AM
  2. Count number of rows
    By Kenan_89 in forum Advanced Java
    Replies: 11
    Last Post: 01-26-2012, 12:52 PM
  3. Update statement gone HeWire
    By _-Blackhawk-_ in forum JDBC
    Replies: 8
    Last Post: 10-06-2011, 11:56 AM
  4. Replies: 4
    Last Post: 03-25-2011, 01:06 PM
  5. Replies: 2
    Last Post: 03-16-2010, 08:24 PM

Posting Permissions

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