扫码关注官方订阅号
闭关修行中......
第一种:select * from qx_cate order by id desc;第二种:select from qx_cate where id != 16 union all select from qx_cate where id = 16;
order by cast(replace(path, ',', '') as unsigned integer)
需要注意 path 超出 int 范围的情况, 或者另寻他法
因为path是按Alphabetical Sorting做的题主要的是Natural Sorting 网上有相关的解决办法可以自己找一下
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
第一种:select * from qx_cate order by id desc;
第二种:select from qx_cate where id != 16 union all select from qx_cate where id = 16;
需要注意 path 超出 int 范围的情况, 或者另寻他法
因为path是按Alphabetical Sorting做的
题主要的是Natural Sorting
网上有相关的解决办法可以自己找一下