select
substring_index(substring_index(a.associate_host_ids,',',b.help_topic_id+1),',',-1) as id
from
platform_security_inciden a
join mysql.help_topic b on b.help_topic_id < (length(a.associate_host_ids) - length(replace(a.associate_host_ids,',',''))+1)
order by a.id
Mysql逗号分隔的数据进行分行
最新推荐文章于 2024-04-22 09:18:11 发布