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

Home -> Community -> Usenet -> c.d.o.misc -> Compilation error

Compilation error

From: Alphomega \(JLM\) <alphomega_at_free.fr>
Date: Tue, 22 Jul 2003 10:56:32 +0200
Message-ID: <3f1cfc40$0$8079$626a54ce@news.free.fr>


Hi,

I'm a really newbie with Oracle.
I write :

SQL> CREATE FUNCTION AFF_DPT(val DOUBLE) RETURN VARCHAR(255)   2 BEGIN
  3 IF val = 1 THEN
  4 RETURN 'Moyenne';
  5 ELSEIF val = -1 THEN
  6 RETURN 'Inconnue';
  7 ELSE
  8 RETURN CAST((val - 1) AS CHAR);
  9 END IF;
 10
 11 END;
 12 /

SqlPlus respond:

Attention : Function created with compilation errors.

Can you help me to find the problem please ?

Jean-Luc ! Received on Tue Jul 22 2003 - 03:56:32 CDT

Original text of this message

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