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 -> REPOST: Re: SQLPlus column widths

REPOST: Re: SQLPlus column widths

From: Fernão Magalhaes <barameda_at_h.o.t.m.a.i.l.com>
Date: Sun, 27 Jan 2002 13:49:52 -0800
Message-ID: <6$--$%%%_$_$__$%-$@news.noc.cabal.int>


The SQL+ command to format columns is:

    COLUMN column_name FORMAT format

It only accepts a constant value, but not an expression. You need to query the datatype and column heading length, then decide which value to use.

--Fernão
  DBA wannabe

"Christian Maslen" <cmaslen_at_nospam.bigpond.net.au> wrote in message news:xJN48.14478$Ni2.74908_at_news-server.bigpond.net.au... Is there a SQLPlus command that will make the display of a column the greater of either the datatype or the column name?

And can this be applied to every column instead of having to name the columns explicitly, before typing your select statement?

Thanks in advance,
Christian.

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers. Received on Sun Jan 27 2002 - 15:49:52 CST

Original text of this message

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