如果找到重复值,是否可以用空字符串替换行值?如果重复,则用空字符串替换行值
例如
SELECT ProductCode, Color FROM Product
--------------------
ProductCode | Color
--------------------
00A0B | Red
00A0B | Blue
00A0C | Red
00A0C | Black
00A0C | White
--------------------
到
--------------------
ProductCode | Color
--------------------
00A0B | Red
| Blue
00A0C | Red
| Black
| White
--------------------
我使用SQL Server 2012的