一个关于MySQL字符串排序,在数据里面定义的是varchar类型,实际存放的是Int类型的数据,按一下查询语句进行排序: 将字段*1或者+0可以将MySQL字符串字段按数值排序 如: 1 select * from table where 1 order by id*1 desc; 或者 1 select * from table whe ......
本文摘自 :https://www.cnblogs.com/
海量资源,尽在掌握
一个关于MySQL字符串排序,在数据里面定义的是varchar类型,实际存放的是Int类型的数据,按一下查询语句进行排序: 将字段*1或者+0可以将MySQL字符串字段按数值排序 如: 1 select * from table where 1 order by id*1 desc; 或者 1 select * from table whe ......
本文摘自 :https://www.cnblogs.com/
开通会员,享受整站包年服务