Brug GROUP_CONCAT()
til dette med en GROUP BY
dækker de tre andre kolonner:
SELECT
name, -- Microsoft
other, -- GGG
other2, -- 1
GROUP_CONCAT(id) AS ids
FROM tbl
GROUP BY name, other, other2
Brug GROUP_CONCAT()
til dette med en GROUP BY
dækker de tre andre kolonner:
SELECT
name, -- Microsoft
other, -- GGG
other2, -- 1
GROUP_CONCAT(id) AS ids
FROM tbl
GROUP BY name, other, other2