node.js - I want the data that enters the database last to be displayed first in the foreground. How to do this?
欧阳克
欧阳克 2017-06-12 09:21:10
0
2
754

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

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(2)
曾经蜡笔没有小新

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

    Select * from Table order by ID desc
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template