1.字段内容

2.想得到的效果
步骤1中,每一条记录的FJ字段,根据分号,拆分成多条,如下图所示:
 
3.具体实现
说明:
SELECT DISTINCT
     substring_index(substring_index(a.要拆分的字段, '分隔字符', b.help_topic_id + 1), '分隔字符',- 1) as 拆分后字段别名
FROM 实际表名 a
    JOIN mysql.help_topic b ON b.help_topic_id < (length(a.要拆分的字段) - length(REPLACE(a.要拆分的字段, '分隔字符', '')) + 1)
WHERE a.ID = 2082894;
 
实现:
SELECT DISTINCT
     substring_index(substring_index(a.fj, ';', b.help_topic_id + 1), ';',- 1) as fj_id
FROM temporary_traffic_permit_info a
    JOIN mysql.help_topic b ON b.help_topic_id < (length(a.fj) - length(REPLACE(a.fj, ';', '')) + 1)
WHERE a.ID = 2082894;
                

![[NLP] LLM---<训练中文LLama2(五)>对SFT后的LLama2进行DPO训练](https://img-blog.csdnimg.cn/51e0f89539834e8ca494b4d047d0a18c.png)
![[字符串和内存函数]错误信息报告函数strerror详解](https://img-blog.csdnimg.cn/98adee09ed56420f9f75783f0f52e2b8.jpeg)



![集成电路运算放大器[23-9-16]](https://img-blog.csdnimg.cn/943b7d0da5d541638f84ee604534edae.png)











