Spróbuj tego, SELECT * FROM table1 as t1 LEFT JOIN table 2 as t2 on JSON_CONTAINS(t1.id->'$[*]', CAST(t2.id as JSON))