我有一个表用户加盟与同场的两个表的多个列
id firstname lastname 1 | Kenny | Kim 2 | Smith | Lt 3 | James | Wagh 4 | Wales | St 5 | Stephen | Mathew
队表
tid manager teams 1 2 3 2 2 4 3 5 1
我想要的结果是 Manager Team Mates Smith Lt James Wagh, Wales St, Kenny Kim
我我没有得到如何加入。 PLZ确实建议。
看['GROUP_CONCAT()'](https://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html#function_group-concat ) –
什么存储在'teams'表的'teams'列中? –
@Paul Spiegel:来自用户的用户的ID表 – user3368088