I have a database where one of the tables has the designation "Products" and I would like to extract from it the last 4 items inserted in it. The column with the primary key is autoincriment.
When doing the Sql query, when using "Limit 4" is enough to fetch the last 4, or not? Or do I make the process easier if I create a datetime column inside the table, where whenever a new item is inserted it stores the date and time it was entered?
Q: I'm using MySql database