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: Error when running 8.1.7 and 9i

RE: Error when running 8.1.7 and 9i

From: Jeroen van Sluisdam <jeroen.van.sluisdam_at_vrijuit.nl>
Date: Fri, 11 Jan 2002 00:12:33 -0800
Message-ID: <F001.003ED73A.20020111000022@fatcity.com>

Hi,

Put in the format of the date you want
like: to_char( p_date, 'yyyy' )
See also date formats in manuals

Jeroen

-----Oorspronkelijk bericht-----
Van: RAYMOND [mailto:raymond_at_infopro.com.my] Verzonden: vrijdag 11 januari 2002 8:30
Aan: Multiple recipients of list ORACLE-L Onderwerp: re: Error when running 8.1.7 and 9i

To all oracle dba...

This problem exist when I running oracle 8.1.7 or Oracle 9i v_yy BINARY_INTEGER;
v_date DATE;

v_chardate VARCHAR2(20);

V_CHARDATE := '31-DEC-'||TO_CHAR(year(p_date));

when I compile ..it get me error

PLS-00103: Encountered the symbol "(" when expecting one of the following:

   from
The symbol "from" was substituted for "(" to continue.

Here is a simple solution to it..

v_yy := year(p_date)

v_chardate := '31-DEC-'||v_yy......

any other solution for this ?

--

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: Jeroen van Sluisdam
  INET: jeroen.van.sluisdam_at_vrijuit.nl
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 Fri Jan 11 2002 - 02:12:33 CST

Original text of this message

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