Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Update statement

 
prathamesh bandivadekar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya its a user defined and it is thrown wen

"0 <= statement.executeUpdate()"
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the SQL you are trying to run?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic