Quantcast
Browsing all 2 articles
Browse latest View live

Answer by Vinay Pai for Protecting specific object id from being deleted in...

You can do this by creating another table which references this table with a FOREIGN KEY constraint, and ON DELETE RESTRICT.CREATE TABLE protected_objects ( obj_id INT FOREIGN KEY(obj_id) REFERENCES...

View Article


Protecting specific object id from being deleted in MySQL

I have 97 objects ranging from id=1 to id=97 in my database that contain core data. Is there any way to protect only these objects (=equals the column name) from being deleted, but not the entire...

View Article

Browsing all 2 articles
Browse latest View live