mysql字符串拆分

SELECT ref2,substring_index(substring_index(ref2,',', b.help_topic_id + 1), ',', -1) FROM risk_role_perm t join mysql.help_topic b ON b.help_topic_id <  (LENGTH(ref2) - LENGTH(REPLACE(ref2, ',', '')) + 1);

你可能感兴趣的:(mysql字符串拆分)