想要在mysql中匹配集中保留设置 [英] want remaining set in matching set in mysql
本文介绍了想要在mysql中匹配集中保留设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i希望从创建的exp中保留剩余的设置。
SELECT FIND_IN_SET(' 136' ,' 519,136,370,310,575')
然后我想要 370,310,575
在我的sql
thankx
解决方案
< blockquote>这里有线索。使用 INSTR [ ^ ]你可以获得发生位置&结合 SUBSTRING [ ^ ]& LENGTH [ ^ ]你可以得到结果。
hi,
i want remaining set from founded exp.
SELECT FIND_IN_SET('136','519,136,370,310,575')
then i want 370,310,575
in my sql
thankx
解决方案
Here clue for you. Using INSTR[^] you could get position of occurrence & combining SUBSTRING[^] & LENGTH[^] you could get the result.
这篇关于想要在mysql中匹配集中保留设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文