--前提是主键id是字符串类型,存入的数据却是数字。如果是‘ffgh’这种英文字母的话,是无法转换排序的。 select * from user_info ORDER BY cast(id AS INT) desc