create table temp_1 as
SELECT a.appid
, a.`NAME`
, substring_index(substring_index(a.`NAME`, ',', b.help_topic_id + 1), ',', - 1) AS xinming
FROM temp a
INNER JOIN mysql.help_topic b
ON b.help_topic_id < (length(a.`NAME`) - length(REPLACE(a.`NAME`, ',', '')) + 1);
mysql表列中字符串逗号分割转列
最新推荐文章于 2024-07-14 03:54:43 发布