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 Auto-trim Whitespace???

RE: Sqlplus Auto-trim Whitespace???

From: Murray, Margaret <mamurray_at_husseyseating.com>
Date: Fri, 05 Apr 2002 12:13:36 -0800
Message-ID: <F001.0043D793.20020405121336@fatcity.com>


Walter,

set trimspool ON (or set trimsp on or set trims on)

you can also use "show all" at the sqlplus prompt to get an idea about what other options have been set (if you don't remember the command). Margaret

> -----Original Message-----
> From: Walter K [mailto:alden14004_at_yahoo.com]
> Sent: Friday, April 05, 2002 2:37 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Sqlplus Auto-trim Whitespace???
>
>
> Hi,
>
> A co-worker of mine is trying to remember how to have
> trailing whitespace automatically removed from each
> COLUMN in the output of a query within SQL*Plus. He
> said he saw the tip in a book a couple years ago and
> can't remember for the life of him how he went about
> it. I have poured through the docs myself and other
> references and can't seem to find a way to do this.
>
> The objective is to set the COLSEP to say '|' and then
> be able to perform something like a SELECT * FROM
> <table> such that the output/display is variable
> length for each column.
>
> The solution we're looking for is purely within
> SQL*Plus, not doing something with PL/SQL. Also, the
> solution should not involve using the COLUMN command
> to control the formatting of each column literally.
>
> Anyone know how to do this? Does anyone remember the
> tip and possibly the name of the book?
>
> Thanks again!
> -w
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Walter K
> INET: alden14004_at_yahoo.com
>
> 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).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Murray, Margaret
  INET: mamurray_at_husseyseating.com

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 Fri Apr 05 2002 - 14:13:36 CST

Original text of this message

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