文章详情页
mysql字符串排序问题
浏览:244日期: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. Browser-sync安装失败问题2. python3.x - python多进程,不能在同一窗口吗3. javascript - 手机点击input时,button会被顶上去?求解决!!!4. javascript - iview 打包之后 找不到自带的icon图片,而且路径重复,点解5. python - django 项目的 migrations 目录是否应该提交到 git6. linux - 为什么我在mysql的my.cnf下找不到bind-address?7. mysql - phpMyAdmin无法导入数据8. python - celery beat 调度如何运行期间动态添加任务?9. 网页爬虫 - python爬虫用BeautifulSoup爬取<s>元素并写入字典,但某些div下没有这一元素,导致自动写入下一条,如何解决?10. mysql按照时间热度排序
排行榜

网公网安备