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!

Catching DELETE exceptions?

843859Dec 10 2005 — edited Dec 11 2005
If i enter the following query to mysql

DELETE from Customers WHERE CUST_ID = 99;

Query OK, 0 rows affected (0.01sec)

It happly accepts it. But the actual row doesn't exist.

Is there anyway to grab onto the exception so i can display an error message i.e. you can't delete that id because it doesn't exist?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2006
Added on Dec 10 2005
4 comments
495 views