我找到了一种将不同行中的字符串聚合到sybase ASE 15中的单行中的方法。像这样:
id | Name Result: id | Names
-- - ---- -- - -----
1 | Matt 1 | Matt, Rocks
1 | Rocks 2 | Stylus
2 | Stylus
Run Code Online (Sandbox Code Playgroud)
T-SQL中的FOR XML PATH之类的东西。
谢谢!