输入banner图图片脚本导航/分类

MySQL 数字字符串按照数字排序

或者+0可以将MySQL字符串字段按数值排序 


如: 

1 select * from table where 1 order by id*1 desc; 


或者 

1 select * from table where 1 order by id+0 desc;

除了上述方法外,这里附上一种排序方法,利用find_in_set()进行无敌排序

参考链接:https://blog.csdn.net/weixin_40607363/article/details/81776951

MySQL 数字字符串按照数字排序

标签:mysql   HERE   weight   str   weixin   链接   des   一个   pre