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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re not sure then run a
SELECTfirst to see what will be deleted:The rows that are returned by this query are those that will be deleted by changing
SELECT *toDELETE.I would recommend using this technique any time you are writing a
DELETEstatement to prevent accidents due to typos, and especially so if recovering accidentally deleted data is time consuming.