Mariadb Selecione várias linhas em uma coluna
SELECT
GROUP_CONCAT(DISTINCT id SEPARATOR ', ') AS 'ids'
FROM
table_name
WHERE
column_name = 'value'
MatrixZA
SELECT
GROUP_CONCAT(DISTINCT id SEPARATOR ', ') AS 'ids'
FROM
table_name
WHERE
column_name = 'value'