Veuillez utiliser la requête ci-dessous,
select col2, GROUP_CONCAT(col3) from data group by col2;
Ci-dessous le cas de test,
https://dbfiddle.uk/?rdbms=mysql_8.0&fiddle=ab35e8d66ffe3ac6436c17faf97ee9af
Veuillez utiliser la requête ci-dessous,
select col2, GROUP_CONCAT(col3) from data group by col2;
Ci-dessous le cas de test,
https://dbfiddle.uk/?rdbms=mysql_8.0&fiddle=ab35e8d66ffe3ac6436c17faf97ee9af