select * from table2 a
where id REGEXP (select REPLACE(REPLACE(substring_index(substring_index(col,']',1),'[',-1),',','|'),'"',"") from table1)
SELECT *
FROM
JSON_TABLE(
'["2","3"]',
"$[*]"
COLUMNS(
Value INT PATH "$"
)
) data;
要是我就分成两条sql,在代码中处理格式转换