📜  mysql join table with a text columns with ids split by char - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:12.854000             🧑  作者: Mango

代码示例1
SELECT a.c1,
        a.ids,
        GROUP_CONCAT(b.name SEPARATOR '|')
FROM Table1 a
INNER JOIN Table2 b
ON FIND_IN_SET(b.id, REPLACE(a.ids, '|', ','))
GROUP BY a.c1,
        a.ids