tpearl5
12-30-2013, 01:23 PM
This query will set all of one user's blog posts to not visible (not a hard delete):
UPDATE `blog` SET `state` = "deleted" WHERE `username` = "USERNAME" AND `state` = "visible";
You can reverse this by swapping 'deleted' and 'visible' for state =
UPDATE `blog` SET `state` = "deleted" WHERE `username` = "USERNAME" AND `state` = "visible";
You can reverse this by swapping 'deleted' and 'visible' for state =