Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sqlplus question
The only method I know of is to concatenate the fields together in one
column. If there is a way to have variable sized SQL*Plus column formatting,
I'd love to see it...seriously...it would be cool.
Until then...
1 select substr(ename,1,length(rtrim(ename))), job
2* from emp
SQL> /
SMITH |CLERK ALLEN |SALESMAN WARD |SALESMAN JONES |MANAGER MARTIN |SALESMAN
1 select substr(ename,1,length(rtrim(ename)))||'|'||job
2* from emp
SQL> /
SMITH|CLERK
ALLEN|SALESMAN
WARD|SALESMAN
JONES|MANAGER
MARTIN|SALESMAN
-----Original Message-----
Sent: Thursday, September 19, 2002 8:51 AM
To: Fink, Dan; ORACLE-L_at_fatcity.com
I don't want just 4. It's variable length and I want the actual number of valid bytes.
Bill Carle
AT&T
Database Administrator
816-995-3922
wcarle_at_att.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Fink, Dan
INET: Dan.Fink_at_mdx.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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 Thu Sep 19 2002 - 10:58:37 CDT
![]() |
![]() |