将字符串类型的数字转化为数字类型的数字就可以了,如下:
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