將字符串類型的數字轉化爲數字類型的數字就可以了,如下:
select
year,
month
from table
order by
cast(year as signed), cast(month as signed) asc
將字符串類型的數字轉化爲數字類型的數字就可以了,如下:
select
year,
month
from table
order by
cast(year as signed), cast(month as signed) asc