I'm having a problem in mysql. I want to delete 20 rows from a table containing 100+ records.
I do not know the id's of the rows, any special identification of the rows to be deleted. I want to just delete the any random rows from my table.
Please help me... i am new to this condition.
You can do:
DELETE FROM tbl
ORDER BY RAND()
LIMIT 20
See MySQL DELETE
syntax
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With