SELECT month FROM month_record ORDER BY month

得到1 10 8 9 显然是不符合要求的

postgresql

SELECT month FROM month_record ORDER BY month::int

https://stackoverflow.com/questions/8502505/order-varchar-string-as-numeric

mysql

SELECT month FROM month_record ORDER BY month + 0