Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Delete succeed but return 0

843854Dec 8 2003 — edited Dec 10 2003
Hi,
I called PreparedStatement.executeUpdate, passed in a delete statement which delete one row. It succeed, but it return 0. I've checked the database and it's really deleted. This delete statement is just a very simple sql statement that use one where condition.

Then I try to change the statement to delete something in other table, still the same database, in that same code, and it return the correct row count.

What is the possibility of this problem?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2004
Added on Dec 8 2003
10 comments
1,343 views