File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Update statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Update statement" Watch "Update statement" New topic

Update statement

prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
I m getting probleme in update Statement.

My database is getting updated, but the update statement is returning 0.

So i m getting an exception in my application.

can anyone tell me what can be the probleme with update statement.


Prathamesh M.B.<br />Java....only.....
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Is your update statement a DDL update statement?And about the exception... I assume it is not a user defined exception.

prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
ya its a user defined and it is thrown wen

"0 <= statement.executeUpdate()"
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

What is the SQL you are trying to run?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Update statement
Similar Threads
problem using spring 2.0.6 with hibernate 3.2
how to initialize an applet?
For optimizeit
ant is not working
problem in jsp and database connection