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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Creating several functions in the same script

Re: Creating several functions in the same script

From: Eric Givler <egivler_at_flash.net>
Date: Mon, 11 Dec 2000 19:32:44 GMT
Message-ID: <wZ9Z5.6223$bw.484866@news.flash.net>

You can do this.
After the END;, put a / between each create or replace function statement. If you get errors, do a show error. If you are going to log the output, turn document on and echo on and spool it to a file.

<miguelangel6886_at_my-deja.com> wrote in message news:9136vj$mpr$1_at_nnrp1.deja.com...
> Is it possible to create several functions in the same sql script?
> I write
> CREATE O REPLACE FUNCTION A(param1) RETURN number
> IS
> -- variables
> ...
> BEGIN
> -- function body
> ...
> END;
> CREATE O REPLACE FUNCTION B(param1) RETURN number
> IS
> -- variables
> ...
> BEGIN
> -- function body
> ...
> END;
>
> Then I get an error (compiled with errors. Any clue?
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Mon Dec 11 2000 - 13:32:44 CST

Original text of this message

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