Quantcast
Channel: Protecting specific object id from being deleted in MySQL - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>