Catching DELETE exceptions?
843859Dec 10 2005 — edited Dec 11 2005If 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