Combine multiple lines with the same field

After mysql is grouped, a field of multiple rows of records in the same group is merged into a field of a record, separated by commas
select ID,group_concat(NAME) as NAME from table group by ID;
select ID,group_concat(NAME SEPARATOR '; ') as NAME from table group by ID;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326511559&siteId=291194637