Столбец SQL в списке строк с разграниченными запятыми
SELECT GROUP_CONCAT(DISTINCT concat("'", concat(team, "'") )SEPARATOR ', ') AS Team_Names
FROM teams;
M B
SELECT GROUP_CONCAT(DISTINCT concat("'", concat(team, "'") )SEPARATOR ', ') AS Team_Names
FROM teams;