Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> REPOST: Re: SQLPlus column widths
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
![]() |
![]() |