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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
