Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All fields delimited by commas

Status
Not open for further replies.

Jalr2003

Technical User
May 15, 2003
26
0
0
US
I have a table that has a lot of columns and I want to have
my results delimited by commas.

I now I can do something like this:

Select
FIELD1 || ',' ||
FIELD2 || ',' ||
*
*
*
FIELD(n-1) || ',' ||
FIELDn
FROM
TABLE

Is there a way to make a select * statement obtaining the same result?

Thanks,

Jalr2003
 
If you are using SQL*Plus in Oracle you can:
Code:
SQL> set head off
SQL> set colsep ,
SQL> select * from cat where rownum=1;

MY_TABLE                      ,TABLE
SQL>
Hope this helps!

Code:
select * from Life where Brain is not null
Consultant/Custom Forms & PL/SQL - Oracle 8.1.7 - Windows 2000
[sup]When posting code, please use TGML to help readability. Thanks![sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top