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. SQL Order BY Varchar as DateTime
- 4. ORDER BY <int或varchar>
- 5. MYSQL UNION ORDER BY
- 6. mysql order by limit
- 7. ORDER BY在MySQL
- 8. MYSQL,ORDER BY LIKE
- 9. MySQL GROUP BY order when no ORDER BY
- 10. mysql order-by original「where order」
- 11. 優化LEFT JOINS ORDER BY多個VARCHAR列
- 12. MYSQL GROUP BY/ORDER BY confusion
- 13. Mysql COUNT,GROUP BY和ORDER BY
- 14. MySQL ORDER BY,GROUP BY內JOIN
- 15. mysql order by tag occurrence group by
- 16. mysql order by count performance
- 17. MySQL錯誤ORDER BY
- 18. MySQL ORDER BY邏輯
- 19. MYSQL ORDER BY 2列
- 20. Mysql的ORDER BY FIELD()
- 21. MySQL complex ORDER BY issue
- 22. MySQL:使用ORDER BY
- 23. php mysql union order by
- 24. MySQL「ORDER BY」問題
- 25. MySQL order by COUNT DISTINCT
- 26. Mysql order by別名
- 27. PHP + MySQL - ORDER BY LIKES
- 28. MySQL查詢 - ORDER BY
- 29. MySQL ORDER BY問題
- 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