Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: [SQL*Plus] Delimitting with pipe characters is possible?
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
Since you don't bother hinting at the operating system or database version, you get a generic reply:
You may find these questions, and many more, are answered in the SQL*Plus users manual.
Check out
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/toc.htm
for Oracle9i Release 2.
Specifically look at COLSEP (column separator). Also look at Pagesize and see what impact it has on headings.
You can also get there through http://docs.oracle.com and you need an OTN (http://otn.oracle.com) account but it's free. Received on Sun Nov 23 2003 - 21:32:26 CST