字符串字段按照数字规则排序

SELECT * FROM `user` WHERE m_id=7 ORDER BY CAST(name AS SIGNED)

猜你喜欢

转载自blog.csdn.net/licanfeng1/article/details/135247345