Possible Duplicate:
Simulating group_concat MySQL function in MS SQL Server 2005?
Does T-SQL have an aggregate function to concatenate strings?
SQL group_concat function in SQL Server
我像这样的表格式结构
Table1
Col1 Col2
val1 text1
val1 text2
val1 text3
val1 text4
val1 text5
Now i want the output using a simple sql statement(No procedure No function) in this form like this.
类似语诸如的语句
选择 Col2, 其中 Col1 = val1
输出像
<强度 > text1, text2, text3, text4, text5 强度>