摘要:
SqlServer 2017+版本可以使用如下语句 SELECT GroupColumn, STRING_AGG(TargetColumn, ',') WITHIN GROUP (ORDER BY TargetColumn) AS MergedStrings FROM YourTable GROUP 阅读全文
摘要:
SqlServer 2017+版本可以使用如下语句 SELECT GroupColumn, STRING_AGG(TargetColumn, ',') WITHIN GROUP (ORDER BY TargetColumn) AS MergedStrings FROM YourTable GROUP 阅读全文
|