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 -> Q:out paramter in a function???

Q:out paramter in a function???

From: Samer Habib <sha_at_mms-dresden.telekom.de>
Date: Wed, 18 Aug 1999 17:51:08 +0200
Message-ID: <37BAD66C.3AA0CB16@mms-dresden.telekom.de>


hi,

I get an error messages if I try to compile the following package.

Package TEST
  IS
  FUNCTION function_name

     ( param1 IN NUMBER,
       param2 OUT NUMBER)
     RETURN BOOLEAN;

END; Package Body TEST
IS

   Function function_name
    ( param1 NUMBER,

      param2 NUMBER)
     RETURN BOOLEAN

    IS
   BEGIN
       select 1 into param2 from dual;
       return TRUE;

   END;
END; Error message:
PLS-00403: expression str cannot be used as an INTO target of a SELECT/FETCH statement

or this error message if I replace the select line with following line:

    param2 := 1;
PLS-00363: expression str cannot be used as an assignment target

thanks

samer Received on Wed Aug 18 1999 - 10:51:08 CDT

Original text of this message

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