rowdeleting

How to delete a table rows and keep top X rows

How to delete a table rows and keep top X rows Question: I have this large table in MySQL incident_archive that has millions of records, I want to sort the rows by created column and keep the Top X rows and delete the rest, what is the most efficient way to do this. So far …

Total answers: 1