0
可能重複:
Simulating group_concat MySQL function in Microsoft SQL Server 2005?插入動態行一列
如何將插入行(這是動態的)通過空間串聯到一個臨時表中的單個列。我正在使用SQL Server 2005.
Ex。 LetterTable
:
LetterID LetterRow
1 a
2 b
3 c
4 d
5 e
插入到一個臨時表像
#TempTable
:
LetterID LetterRow
1 a b c d e
在此先感謝。