SELECT DISTINCT
substring_index(substring_index(a.value, ‘\n‘, b.help_topic_id + 1), ‘\n‘,- 1) NAME
FROM t_cr_permission a
JOIN mysql.help_topic b ON b.help_topic_id < (length(a.value) - length(REPLACE(a.value, ‘\n‘, ‘‘)) + 1)
WHERE a.id =1
相关文章
- 08-30Oralce 按分隔符把一列转成多行
- 08-30Oralce 按分隔符把一列转成多行
- 08-30mysql按分隔符输出多行