我有一個不可避免的情況下日期將被保存在英國的日期格式,例如:Mysql的排序日期格式
31/12/2001 00:00:00
我需要按降序排列,我已經試過,但它的錯誤
select *, DATE_FORMAT(completiondate,'\%e/%c/%Y\') as cdate
from projects
where countries = 1
order by cdate desc
錯誤:
check the manual that corresponds to your MySQL server version for the the right syntax to use near '' order by cdate desc'
我使用MySQL 4.1.9
它沒有'order by'子句嗎? –