mysql切分一条数据的一个字段分成若干条数据

来源:互联网 发布:淘宝挂拍衣服后期处理 编辑:程序博客网 时间:2024/06/07 15:15


select test_id,substring_index(substring_index(a.user_ids,',',b.help_topic_id+1),',',-1) 
from
e_plan_test a
join
mysql.help_topic b
on b.help_topic_id < (length(a.user_ids) - length(replace(a.user_ids,',',''))+1)
order by a.ID;


阅读全文
0 0
原创粉丝点击