A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Retrieve return message
Joined: Jul 20, 2002
Sep 17, 2004 14:43:00
I'm doing following simple SQL using
. I need to retrieve the
return message "2 rows deleted". Could anyone tell me which
JDBC API I can use? Thanks.
SQL> delete from family_member where first_name='ann';
2 rows deleted.
Joined: May 26, 2003
Sep 17, 2004 18:22:00
If you call it using executeUpdate(), the method returns an integer (in your case 2.) Your code knows that it is performing a delete and can form an appropriate message.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: Retrieve return message
Hibernate not deleting rows
Rollback a delete statement..
IBM 484 : Stmt.execute(Str) - multiple result sets?
line just after result of query
What is the difference between executeUpdate and execute?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013