By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,358 Members | 2,883 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,358 IT Pros & Developers. It's quick & easy.

select column names from table

jamesd0142
100+
P: 469
I use this code:
Expand|Select|Wrap|Line Numbers
  1. select coalesce(COLUMN_NAME, '') + ',' from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'Learner'
  2.  
I get ouput like:
LN01,
LN02,
LN03,
...
LN15,

I need the output to look like 1 single string

Like:

LN01,LN02,LN03,...LN15,

Can any1 advise?

James
Apr 29 '08 #1
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
Start from here

-- CK
Apr 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.