what is the return value of executeUpdate statement to create a table?
Joined: Dec 03, 2001
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
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