aspose file tools*
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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Update statement" Watch "Update statement" New topic
Author

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.

Please.


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.


Aditi
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
Bartender

Joined: Apr 14, 2004
Posts: 10336

What is the SQL you are trying to run?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Update statement