美文网首页
mysql 切割列成多行

mysql 切割列成多行

作者: 有趣有趣 | 来源:发表于2023-07-06 14:27 被阅读0次

SELECT
b.help_topic_id + 1 AS id,
substring_index( substring_index( a.Synonyms, '|', b.help_topic_id + 1 ), '|', - 1 ) AS NAME
FROM
gene_homo_sapiens as a
JOIN mysql.help_topic as b ON b.help_topic_id < LENGTH( a.Synonyms ) - LENGTH(
REPLACE ( a.Synonyms, '|', '' )) + 1
where a.GeneID='1'

相关文章

网友评论

      本文标题:mysql 切割列成多行

      本文链接:https://www.haomeiwen.com/subject/hyiludtx.html