开发者

How to order MySQL records by Unix timestamps in descending order?

How do I order records in a PHP query 开发者_StackOverflowto MySQL by a field that contains TIME() timestamps in descending order?


Use the ORDER BY clause like this:

SELECT …
FROM …
ORDER BY timestamp_field DESC
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜