SELECT
*
FROM zichaxun t1
inner join JSON_TABLE(CONCAT('["', REPLACE('1,2', ',', '","'), '"]'), "$[*]" COLUMNS (score2 varchar(20) PATH "$")) t2
on JSON_CONTAINS(t2.score2, CAST(t1.score as JSON), '$')
SELECT
*
FROM json_test1 t1
inner join json_test2 t2 on JSON_CONTAINS(CONCAT('[',REPLACE(t2.id2, ',', ','), ']'),CAST(t1.id as JSON),'$')