I have a table with 2.500.000 rows. All this rows has a value of timestamp. I want to keep 100 rows that has the biggest timestamp.. All the other values i want to be deleted!!
$values_to_delete = db_delete('error_log_jira')
->condition('timestamp', 1423731524, '>')
->execute();
I have this code and works perfect but i do not know how to crate the thing that i want is someone here that can help me?? I need a real help!!