Quantcast
Channel: Protecting specific object id from being deleted in MySQL - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Protecting specific object id from being deleted in MySQL

$
0
0

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 column?


|objects|---------id int primary keysome more non key attributes...

SELECT * FROM objects returns something like

id | ... 1 | ...    // <- should be protected2 | ...    // <- should be protected3 | ...    // <- should be protected... | ...97 | ...    // <- last object to be protected98 | ...  // <- should not be protected!!!

Viewing all articles
Browse latest Browse all 2

Trending Articles