select name ,count(*) from (SELECT moe.id,substring_index( substring_index( moe.options, ',', b.help_topic_id + 1 ), ',',- 1 ) name
FROM t_questionnaire_record moe
JOIN mysql.help_topic b ON b.help_topic_id < ( length( moe.options ) - length( REPLACE ( moe.options, ',', '' ) ) + 1 )
order by moe.id
) abc
group by name
open_id为唯一id,其中options存储open_id参与过的所有option_id,图二中name表示option_id,count(*)表示option_id下总参与数。