Mysql按日期排序
我的表中有一个名为date1的日期字段。如果我使用以下查询Mysql按日期排序,mysql,Mysql,我的表中有一个名为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. 将您的查询更改为 按日期从计划订单中选择* 这应该能奏效 詹姆斯 select * from
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.
将您的查询更改为
按日期从计划订单中选择*
这应该能奏效
詹姆斯
select * from schedule order by date1 desc