对于mysql中字符串的排序

    xiaoxiao2021-12-14  20

    一个varchar 的字段 存放 1,2 11等 将字段*1或者+0可以将MySQL字符串字段按数值排序 select * from table where 1   order by id+0 desc;  select * from table where 1   order by id*1 desc; 
    转载请注明原文地址: https://ju.6miu.com/read-965263.html

    最新回复(0)