with t as (select c.staff_id, b.course_name from cultivate_tb as c join json_table( concat('["',replace(c.course,',','","'),'"]'), '$[*]' columns ( course_name varchar(50) path '$' ) ) as b on 1=1 where c.course is not null) select count(*) as staff_nums from t