开发者

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

开发者 https://www.devze.com 2023-01-11 14:45 出处:网络
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:

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

精彩评论

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