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: Easy Doubt in sql/plus

RE: Easy Doubt in sql/plus

From: <elkinsl_at_flash.net>
Date: Wed, 21 Mar 2001 16:31:41 -0800
Message-ID: <F001.002D42D3.20010321162053@fatcity.com>

Eriovaldo,

If you don't want to have to mess around with your SQL adding chr(10), and since you said in SQL*Plus, you could use column commands:

SQL> column dname newline
SQL> column loc newline

  1* select * from dept
SQL> /         10
ACCOUNTING
NEW YORK         20
RESEARCH
DALLAS You can also look into using fold_after or fold_before with the col(umn) command.

Not that I think the column commands approach is any better or worse, and, it *is* less typing to do the char(10) approach -- just wanted to bring up another approach that hadn't been mentioned.

Regards,

Larry G. Elkins
elkinsl_at_flash.net
-----Original Message-----
Carmo Andrietta
Sent: Wednesday, March 21, 2001 12:03 PM To: Multiple recipients of list ORACLE-L

Hi Friends :

How can I do for put each column in new line using sql/plus

Example :

Select * from tab;

and the result sould be :

'value of column1'
'value of column2'
'value of column3'
'value of column4'
'value of column5'

and not

'value of column1' 'value of column2' 'value of column3' 'value of column4'
'value of column5'

Thanks

Eriovaldo

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: elkinsl_at_flash.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Mar 21 2001 - 18:31:41 CST

Original text of this message

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