mysql字符串拆分实现split功能

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

mysql字符串拆分实现split功能

https://blog.csdn.net/pjymyself/article/details/81668157


select 

x.*

from apiresources x 

inner join 

(

select * from 

(

SELECT SUBSTRING_INDEX(SUBSTRING_INDEX('1,7654,7698,7782,7788',',',help_topic_id+1),',',-1) AS Id 

FROM mysql.help_topic 

WHERE help_topic_id < LENGTH('1,7654,7698,7782,7788')-LENGTH(REPLACE(',7654,7698,7782,7788',',',''))+1

) z order by z.Id

) y on x.Id=y.Id


mysql字符串拆分实现split功能

https://blog.csdn.net/pjymyself/article/details/81668157select x.*from apiresources x inner join ( select * from ( SELECT S...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息