MySQL 字符串按数值进行排序

方法一:

select * from 表名 where dict_value = #{dictValue} order by 字段*1 asc

方法二:

select * from 表名 where dict_value = #{dictValue} order by 字段+0 asc

posted @ 2017-10-27 18:14  shuzu渊  阅读(162)  评论(0编辑  收藏  举报