Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-15 : 10:31:56
Santosh writes "Hello,
Please answer for this following question.
Is there any way to get Comma Separated values by using SQL Query.?

E.g: I have a table T1 with following data.

A1 B1
1 11
2 11
3 11
4 11
5 11

Now I want to get CSV as "1,2,3,4,5" if I put "11" in Where clause using only one SQL Query.
Please explain me how to do this,

Thanks"

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2002-05-15 : 10:31:56
Yes. We've already written a couple of article on this. Search on CSV and you'll find them.
Go to Top of Page
   

- Advertisement -