简体   繁体   中英

order date with mysql

How can I order date on mysql? I have tried this:

SELECT
DATE_FORMAT(date_time,'%d/%m/%Y') Date
FROM 
   date_time
ORDER BY Date;

but not work fine

thx

date_time排序,因为DATE别名 )已经是VARCHAR

ORDER BY date_time;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM