I have rows over 60000 in my table. How can I delete rows from 40000 to 50000 at once?
Table: grocery
id item
----------
1 rice
2 soap
3 rice
4 rice
DELETE FROM 'grocery' WHERE item="rice" LIMIT 2;
This is easier than all the other ideas. for this particular item , there are 2 records can be deleted.
And the answer is,
2 rows deleted.
SELECT * FROM grocery;
id item
----------
1 rice
2 soap