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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Running SQLPlus from command line

Re: Running SQLPlus from command line

From: Thomas Kellerer <TAAXADSCBIXW_at_spammotel.com>
Date: Thu, 19 Oct 2006 08:00:09 +0200
Message-ID: <4poijbFjv57lU1@individual.net>


On 18.10.2006 23:31 RLN wrote:
> Using SQLPlus from the command line is there a specific command I can
> include in my .SQL file that would place a comma in between each column
> value?

SET COLSEP http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1012319

> What about writing "fillers" to the text output that is spooled? Can
> this be done? For example: a "PartNumber" column is 8 digits long.
> If a particular row has nulls or spaces in the PartNumber column, is
> there a way to write eight zeros to simply indicate for that row, no
> part number existed?

What about

SELECT nvl(trim(partnumber), '00000000') FROM theTable;

Thomas

-- 
It's not a RootKit - it's a Sony
Received on Thu Oct 19 2006 - 01:00:09 CDT

Original text of this message

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