Delete a record using limit with mysql

delete from course_apply order by ca_id desc limit 1000;

i have upload 100000 data in mysql but i can’t able to delete a records only error message through

Bad request or server timeout ,restart

why are you sorting the entire table before deleting 1% of the rows?

Then only possible delete last 1000 records so only i sort

ok…

is there an index on ca_id?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.