I'm creating a log in the mysql database and I need to keep only latest 100 records and delete the older ones. I've tried the solution from THIS question but that doesn't seem to work for me.
my database table has the following columns: datetime temp humidity phvalue
I don't want to use the timestamp method because i need to keep a fixed number of records. can this be done in mysql?