文章详情页
mysql字符串排序问题
浏览:188日期:2022-06-17 17:55:18
问题描述
问题解答
回答1:第一种:select * from qx_cate order by id desc;第二种:select from qx_cate where id != 16 union all select from qx_cate where id = 16;
回答2:order by cast(replace(path, ’,’, ’’) as unsigned integer)
需要注意 path 超出 int 范围的情况, 或者另寻他法
回答3:因为path是按Alphabetical Sorting做的题主要的是Natural Sorting 网上有相关的解决办法可以自己找一下
相关文章:
1. 关于docker下的nginx压力测试2. html5 - node静态资源服务器设置了Cache-Control,但浏览器从来不走3043. docker start -a dockername 老是卡住,什么情况?4. 为什么我ping不通我的docker容器呢???5. docker镜像push报错6. nignx - docker内nginx 80端口被占用7. docker安装后出现Cannot connect to the Docker daemon.8. docker内创建jenkins访问另一个容器下的服务器问题9. dockerfile - 为什么docker容器启动不了?10. debian - docker依赖的aufs-tools源码哪里可以找到啊?
排行榜

网公网安备