Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: sqlplus extract question...

Re: sqlplus extract question...

From: Carel-Jan Engel <cjpengel.dbalert_at_xs4all.nl>
Date: Thu, 6 Jan 2005 15:13:30 +0100 (CET)
Message-ID: <9051.193.172.248.131.1105020810.squirrel@193.172.248.131>


Chris,

This is not a series of columns, but just one big column......

You created one big concatenated string. Try the 'set colsep ,' command in sqlplus to change the column-delimiter to a comma, and forget about the ||','|| thingies.

Regards, Carel-Jan

===
If you think education is expensive, try ignorance. (Derek Bok) ===

> sure, the titles stop at h.NAICS_CODE||'","'||....
>
> SET LINESIZE 32767
> SET PAGES 10000
> SET LINES 1024
>
> ACCEPT fac_id NUMBER PROMPT 'Enter fac_id:'
>
> spool c:\FAC_CHAR.txt
>
> select h.FAC_ID ||'","'||
> h.ORIS_CODE||'","'||
> h.FACILITY_NAME||'","'||

> a.SEAS_CD||'","'||
> a.RETIRE_DATE||'","'||
> a.USERID||'","'||
> a.UPDATE_DATE||'","'||
> a.ADD_DATE||'","'||
> a.INDICATOR_CD
> FROMl a,
> b,
> c,
> d,

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jan 06 2005 - 08:07:57 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US