类似这样:
select
substring_index(
substring_index(
t.com,
'/',
b.help_topic_id + 1
),
'/' ,- 1
) AS com_row,
t.myname
from (
select 'f005/13466664685/f0006/3667477/f0008/3555' as com, '张三' as myname
union all
select '李明明/测试名称' as com, '李四' as myname
) t
JOIN mysql.help_topic b ON b.help_topic_id < (
length(t.com) - length(
REPLACE (t.com, '/', '')) + 1)
