Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
lily ling
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this link:
Interface Statement
Rene
 
Snigdha Solanki
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
lily ling
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Rene and Snigdha.
Lily
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic