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