Click here to Skip to main content
13,550,805 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


10 bookmarked
Posted 6 May 2011
Licenced CPOL

Select a column in a comma separated row in SQL

, 9 May 2011
Rate this:
Please Sign up or sign in to vote.
How to select a column from a comma separated row in SQL
declare @list varchar(max)
select @list=COALESCE(@list+', ','')+ COLUMN_1 from TABLE_1
select @list


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

India India
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...

Comments and Discussions

GeneralHi, fix the typos in the Tip/Trick title Replace <b>coloumn<... Pin
thatraja6-May-11 7:38
mvpthatraja6-May-11 7:38 
Hi, fix the typos in the Tip/Trick title
Replace coloumn with column
Replace seperated with separated
GeneralRe: Thanks. Pin
eceramanan9-May-11 22:54
membereceramanan9-May-11 22:54 
GeneralNice one Pin
Toniyo Jackson6-May-11 2:43
memberToniyo Jackson6-May-11 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.180515.1 | Last Updated 10 May 2011
Article Copyright 2011 by eceramanan
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid