0
A
回答
1
select * from table_name order by column_name DESC;
其中,
table_name is name of table and
column_name is name of column in the table (independent of whatever the data-type)
注: - for proper o/p Your datatype for the time column should be datetime
0
的問題是固定的:
ORDER BY CreationDate ASC,CreationTime DESC
相關問題
- 1. mysql order by integer and varchar
- 2. MySQL order by two varchar columns
- 3. Mysql ORDER BY varchar列存儲爲
- 4. MySQL ORDER BY order
- 5. SQL Order BY Varchar as DateTime
- 6. ORDER BY <int或varchar>
- 7. Mysql Order by Tweak
- 8. MYSQL order by datetime
- 9. ORDER BY在MySQL
- 10. Mysql Query order by
- 11. MYSQL UNION ORDER BY
- 12. mysql order by limit
- 13. MySQL ORDER BY COUNT()?
- 14. MYSQL,ORDER BY LIKE
- 15. mysql order by custom
- 16. MySQL GROUP BY order when no ORDER BY
- 17. mysql order-by original「where order」
- 18. 優化LEFT JOINS ORDER BY多個VARCHAR列
- 19. MySQL的 - ORDER BY和大表
- 20. Mysql COUNT,GROUP BY和ORDER BY
- 21. MySQL ORDER BY,GROUP BY內JOIN
- 22. MYSQL GROUP BY/ORDER BY confusion
- 23. MySQL ORDER BY或GROUP BY
- 24. mysql order by tag occurrence group by
- 25. MYSQL GROUP BY + ORDER BY FIELD()
- 26. MySQL order by(str to int)
- 27. MySQL order by COUNT DISTINCT
- 28. MySQL SELECT和ORDER BY
- 29. PHP + MySQL - ORDER BY LIKES
- 30. 高級MySQL ORDER BY
什麼是你想實現什麼?通常,如果您想按某個字符串對錶格進行排序,而且您沒有按字母數字或字典順序排序,則感興趣的值應存儲在單獨的字段中。 – 2010-06-18 07:31:02
是否有可能,我有兩個領域的日期,時間, 在一個查詢我想設置兩個ORDER BY子句, 在一個字段作爲遞減,另一個爲ASC, 例如ORDER BY日期,時間DESC這是通用查詢,是否有可能是像ORDER BY日期ASC,時間DESC – Bharanikumar 2010-06-18 07:38:55