File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes what is the return value of executeUpdate statement  to create a table? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "what is the return value of executeUpdate statement  to create a table?" Watch "what is the return value of executeUpdate statement  to create a table?" New topic
Author

what is the return value of executeUpdate statement to create a table?

lily ling
Greenhorn

Joined: Dec 03, 2001
Posts: 25
Hi, there
If I want to create a table using executeUpdate statement, can I use its return value to know if action has failed or succeed ? if not, what is the way to know, from the exception it throws out ?
Thanks in advance,
Lily
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Try this link:
Interface Statement
Rene


Regards, Rene Larsen
Dropbox Invite
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
executeUpdate executes SQL insert,update, delete and DDL statements.It returns either the row count for insert, update or delete statements, or 0 for SQL statements that return nothing.
It throws SQLException if there is any DB error.


Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
lily ling
Greenhorn

Joined: Dec 03, 2001
Posts: 25
Thanks, Rene and Snigdha.
Lily
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the return value of executeUpdate statement to create a table?
 
Similar Threads
Update resturns zero rows updated without throwing errors.
Creating Database
Recording session value (parameter) in the bank via jsp
inserting into a database problems
inserting values in database....