Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: substr to trim headings
don't know about SQLWorksheet -- but I would check the glogin.sql and
login,sql files on your server and compare them to the ones on your
client... I'd be willing to bet that on the server there is an entry
col name format a15
which will truncate the heading.
Rachel
>From: jfedock_at_ixl.com
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: substr to trim headings
>Date: Fri, 05 Jan 2001 11:13:01 -0800
>
>Anyone know why my headings do not get trimmed when using substr from the
>SQLPLUS client on my PC.
>It does work in SQLWorksheet and in the Unix server sqlplus. It happens on
>sqlplus client 8.0.5 and 8.1.5
>
>For example:
>
>HEADING IS NOT TRIMMED.
>
>SQL>select substr(username, 1, 15) NAME
> 2 from dba_users
> 3 where rownum < 3;
>
>NAME
>---------------------------------------------
>SYS
>SYSTEM
>
>
>HEADING IS TRIMMED.
>
>NOTE that it works in SQL*Worksheet
>
>SQLWKS> select substr(username, 1, 15) NAME
> from dba_users
> where rownum < 3;
>
>NAME
>---------------
>SYS
>SYSTEM
>
>
>
>
>And it works in Unix sqlplus.
>
>
>NAME
>---------------
>SYS
>SYSTEM
>
>
>
>Thanks for any advice.
>
>
>
>John Fedock
>iXL, Inc.
>
> <mailto:jfedock_at_ixl.com> jfedock_at_ixl.com
>http://www.ixl.com <http://www.ixl.com/>
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author:
> INET: jfedock_at_ixl.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).
![]() |
![]() |