SELECT DISTINCT substring_index(substring_index(t.cf,'、', b.help_topic_id + 1), '、', -1)
FROM cosmetics02 t join mysql.help_topic b ON b.help_topic_id < (LENGTH(t.cf) - LENGTH(REPLACE(t.cf, '、', '')) + 1);
比如cf字段的值为:变性乙醇、水、香精
使用上面的语句之后,可以显示为
SELECT DISTINCT substring_index(substring_index(t.cf,'、', b.help_topic_id + 1), '、', -1)
FROM cosmetics02 t join mysql.help_topic b ON b.help_topic_id < (LENGTH(t.cf) - LENGTH(REPLACE(t.cf, '、', '')) + 1);
比如cf字段的值为:变性乙醇、水、香精
使用上面的语句之后,可以显示为