0

我使用以下方法对查询结果进行排序:

ORDER BY STR_TO_DATE(table1.date, '%Y%m%d'); -- the format of `date` is `Ymd` without delimiter.

但是,结果是不希望的:

20150508
20150514
20150525
20150514
20150515
20150522
20150525
20150529
20150605
20150612
20150619 

对不起我的细心。我使用 shell 命令sort( ./batch_queries.sh | cut -f 3-9,12- | sort | uniq -c) 对查询结果进行排序,导致这样的结果不理想。

4

0 回答 0