I know that this is not the perfect question for SO but this question is very important for me:
DELETE FROM `pligg_links` WHERE `link_id` > 10000
Will this query delete all entries in table pligg_links which have link_id's bigger than 10000?
I know that this is not the perfect question for SO but this question is very important for me:
DELETE FROM `pligg_links` WHERE `link_id` > 10000
Will this query delete all entries in table pligg_links which have link_id's bigger than 10000?
If you're not sure then run a SELECT first to see what will be deleted:
SELECT * FROM `pligg_links` WHERE `link_id` > 10000
The rows that are returned by this query are those that will be deleted by changing SELECT * to DELETE.
I would recommend using this technique any time you are writing a DELETE statement to prevent accidents due to typos, and especially so if recovering accidentally deleted data is time consuming.