File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
IBM 484 : Stmt.execute(Str) - multiple result sets?
Rollback a delete statement..
What is the difference between executeUpdate and execute?
line just after result of query
Hibernate not deleting rows
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014