I want the data that enters the database last to be displayed first in the front desk. How to do this?
Because every time I insert data, it is inserted at the end, I wrote it in nodejs;
If you are a beginner, please give me some advice, I will be very grateful!
Please answer
Give a time when warehousing, such as createTime. select * from table order by createTime desc
When querying, just sort by ID in reverse order.
When writing SQL