SELECT substring_index(substring_index(a.chain,'_',b.help_topic_id + 1 ), '_' ,- 1 ) AS ID FROM (select '1_11_1223_1242' as chain) a JOIN mysql.help_topic b ON b.help_topic_id < (length(a.chain) - length( replace(a.chain, '_', '') ) + 1)
SELECT substring_index(substring_index(a.chain,'_',b.help_topic_id + 1 ), '_' ,- 1 ) AS ID FROM (select '1_11_1223_1242' as chain) a JOIN mysql.help_topic b ON b.help_topic_id < (length(a.chain) - length( replace(a.chain, '_', '') ) + 1)
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。