文章詳情頁(yè)
Mysql: FIND_IN_SET 的反運(yùn)算
瀏覽:100日期:2022-06-14 16:37:20
問(wèn)題描述
問(wèn)題解答
回答1:SELECT reverse(substring_index( reverse(substring_index(’a,b,c,d’, ’,’, index)), ’,’, 1)) 這個(gè)即可滿足你的需求,更改index 得到對(duì)應(yīng)的 a,b,c,d值。 當(dāng)index為2的時(shí)候 得到b。
傳送門 substring_index reverse
回答2:!FIND_IN_SET()
相關(guān)文章:
1. python - TypeError: tryMsgcode() takes exactly 2 arguments (0 given)2. 環(huán)境搭建 - anaconda 創(chuàng)建python2.7環(huán)境中打開(kāi)編譯器確是3.6版本3. extra沒(méi)有加載出來(lái)4. linux - Ubuntu下編譯Vim8(+python)無(wú)數(shù)次編譯失敗5. html5 - H5頁(yè)面喚起APP導(dǎo)航6. javascript - 彈出一個(gè)子窗口,操作之后關(guān)閉,主窗口會(huì)得到相應(yīng)的響應(yīng),例如網(wǎng)站的某些登錄界面,django后臺(tái)的管理等,這是怎么實(shí)現(xiàn)的呢?7. 求救一下,用新版的phpstudy,數(shù)據(jù)庫(kù)過(guò)段時(shí)間會(huì)消失是什么情況?8. mysql replace 死鎖9. list - python 求助10. python - 數(shù)據(jù)與循環(huán)次數(shù)對(duì)應(yīng)不上
排行榜

熱門標(biāo)簽