Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Using XMLSEQUENCE to give a single, csv list of column names

401820Aug 29 2007 — edited Aug 30 2007

Using this query:

select 
column_name 
from 
cols 
where 
table_name = 'PAYMENT_PROPOSAL_REP'
order by
column_id

I can see a list of columns in a table.

Rather than a long list going down the page:
COL1
COL2
COL3
COL4

I would like to create a single list, separated by commas like this:
COL1, COL2, COL3, COL4

I am sure XMLSEQUENCE can be used but would like guidance please.

I have read up and still have no joy!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2007
Added on Aug 29 2007
8 comments
4,557 views