原文地址:https://blog.csdn.net/u010673842/article/details/79637618 select ID, ,,'') from class a group by ID --测试 SQL GROUP 组字符串拼接 SELECT NCOMPONENTCODE, ,,'') AS NCOMPONENTCODES, ,,'') AS PROJECTNAMES from TB_PROJECTS10 a group by NCOMPONENTCODE --查看重复的…