This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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
 
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