mysql 通过某个字段首字母排序

 ORDER BY CAST(num AS UNSIGNED)

字符串 转 数字 后排序

 替代写法

 

posted @ 2024-11-15 16:54  黑狗已醒  阅读(8)  评论(0)    收藏  举报