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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: An Oracle logic error....

RE: An Oracle logic error....

From: Ganesh Raja <ganesh_at_gtfs-gulf.com>
Date: Thu, 13 Dec 2001 03:21:20 -0800
Message-ID: <F001.003DBA57.20011213024025@fatcity.com>

There is no Logical Error Here... It is perfectly Logical.

The Char is Explicitly Converted into a Number if Oracle Finds that it has only Numbers and No Chars.

happy Scouting for errors !!!

Best Regards,
Ganesh R
Tel : +971 (4) 397 3337 Ext 420
Fax : +971 (4) 397 6262
HP : +971 (50) 7456019

-----Original Message-----
Sent: Thursday, December 13, 2001 1:05 PM To: Multiple recipients of list ORACLE-L

A sound not right program to ask you all.

I have

declare l_aayr_nm to NUMBER(4);

l_aayr_nm := TO_CHAR(bsmstr_rec.ful_rls_dt,'YYYY');

and I insert l_aayr_nm into a table with

INSERT INTO penm (yr ) values (l_aayr_nm);

the declaration of the yr is NUMBER(4) also.

But oracle did't give me any error on this ??Why ?

--

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

Author: Raymond
  INET: raymond_at_infopro.com.my

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).
--

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

Author: Ganesh Raja
  INET: ganesh_at_gtfs-gulf.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 Thu Dec 13 2001 - 05:21:20 CST

Original text of this message

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