文章詳情頁
mysql字符串排序問題
瀏覽:84日期: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:因?yàn)閜ath是按Alphabetical Sorting做的題主要的是Natural Sorting 網(wǎng)上有相關(guān)的解決辦法可以自己找一下
相關(guān)文章:
1. 視頻文件不能播放,怎么辦?2. mysql - 把一個(gè)表中的數(shù)據(jù)count更新到另一個(gè)表里?3. 請(qǐng)教使用PDO連接MSSQL數(shù)據(jù)庫插入是亂碼問題?4. mysql 查詢身份證號(hào)字段值有效的數(shù)據(jù)5. visual-studio - Python OpenCV: 奇怪的自動(dòng)補(bǔ)全問題6. mysql - 分庫分表、分區(qū)、讀寫分離 這些都是用在什么場(chǎng)景下 ,會(huì)帶來哪些效率或者其他方面的好處7. node.js - nodejs開發(fā)中常用的連接mysql的庫8. linux - Ubuntu下編譯Vim8(+python)無數(shù)次編譯失敗9. python - 爬蟲模擬登錄后,爬取csdn后臺(tái)文章列表遇到的問題10. Python爬蟲如何爬取span和span中間的內(nèi)容并分別存入字典里?
排行榜

熱門標(biāo)簽