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

Home -> Community -> Mailing Lists -> Oracle-L -> TO_CHAR conversions require an extra byte?

TO_CHAR conversions require an extra byte?

From: Jesse, Rich <Rich.Jesse_at_qtiworld.com>
Date: Mon, 19 Mar 2001 13:29:36 -0800
Message-ID: <F001.002D0EB5.20010319124039@fatcity.com>

Can anyone explain the following or point me to an FM to R?

        SELECT LENGTH(TO_CHAR(123,'0000')) "Bleah" FROM DUAL;

        Bleah
        ------
        5

For some silly reason, I would have expected the length to be "4". An implicit sign perhaps?

TIA,

Rich Jesse                          System/Database Administrator
Rich.Jesse_at_qtiworld.com             Quad/Tech International, Sussex, WI USA


-----------------------------------------------------------------------

This message has been scanned for viruses with Trend Micro's Interscan VirusWall.
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Jesse, Rich
  INET: Rich.Jesse_at_qtiworld.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). Received on Mon Mar 19 2001 - 15:29:36 CST

Original text of this message

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