我的表中有一个名为date1的日期字段。如果我使用以下查询。
select * from schedule order by date1 asc
it gives the result like as jan 2011 comes before december 2010. but i need the december 2011 as the first row of the result.
答案 0 :(得分:1)
将您的查询更改为
SELECT * FROM schedule ORDER BY date1 DESC
这应该可以解决问题。
詹姆斯
答案 1 :(得分:0)
select * from schedule order by date1 desc