首页 > 技术文章 > mysql 按数字大小排序

wa502 2020-01-13 14:46 原文

SELECT LatticeNo fromdownpackage ORDER BY LatticeNo*1;

精髓就是【*1】,强制转换 LatticeNo 类型为int类型

推荐阅读