2011-01-24 18 views
0

私のテーブルにdate1という日付フィールドがあります。私は次のクエリを使用する場合。Mysql日付で注文

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. 

答えて

1
これはトリックを行う必要があります

SELECT * FROM schedule ORDER BY date1 DESC

にクエリを変更し

ジェームズ

0
select * from schedule order by date1 desc 
関連する問題