将mysql查询结果中的 20,28,35
以
这种形式展示
SELECT
substring_index( substring_index( t.best_response, ',', b.help_topic_id + 1 ), ',', - 1 ) FROM m_require t
JOIN mysql.help_topic b
ON b.help_topic_id < ( LENGTH( t.best_response ) - LENGTH( REPLACE ( t.best_response, ',', '' ) ) + 1 )
WHERE t.id = 64
mysql.help_topic 这个表是数据库自己本身的表,作为一个参照且必须有这个参照