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

Home -> Community -> Usenet -> c.d.o.server -> Re: [SQL*Plus] Delimitting with pipe characters is possible?

Re: [SQL*Plus] Delimitting with pipe characters is possible?

From: Mladen Gogala <mgogala_at_adelphia.net>
Date: Mon, 24 Nov 2003 12:00:32 GMT
Message-Id: <pan.2003.11.24.12.00.47.729115@adelphia.net>


On Sun, 23 Nov 2003 19:10:13 -0800, aleatory wrote:

> Hi SQL*Plus gurus,
>
> It would help my life tremendously if there is
> a way to set delimiters in SQL*Plus.
>
> The following is what I'd like to hopefully get
> after executing my SQL*Plus programs.(Please note
> that I need no column headers but just plain pipe-
> delimited data):
>
> |1|0|
> |2|0|
> |3|0|
> |4|0|
> |5|0|
> |6|0|
> |7|SYSTEM|5|
> |8|USERA|21|
>
> However, the following is the output after executing
> the SQL code below:
>
> | SQL> SELECT sid,
> | 2 username,
> | 3 user#
> | 4 FROM v$session;
> |
> | SID USERNAME USER#
> | --- -------- -----
> | 1 0
> | 2 0
> | 3 0
> | 4 0
> | 5 0
> | 6 0
> | 7 SYSTEM 5
> | 8 USERA 21
>
> Thanks in advance,
>
> alea

set colsep '|'

-- 
None of us is as dumb as all of us.
(http://www.despair.com/meetings.html)
Received on Mon Nov 24 2003 - 06:00:32 CST

Original text of this message

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