I am trying to delete the last record in the table named \"marks\" in the database using MySql query. I was tried to do so. Also I tried on
This is not the best but a different solution.
DELETE FROM marks WHERE id = (SELECT id FROM marks ORDER BY id DESC LIMIT 1);