Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Include function in declare section with @

686258Apr 9 2009 — edited Apr 14 2009
I want to "include" a function that's not stored on the database in the declare section of a pl/sql program. This function code resides in an .sql file in the same directory as the calling program. It's a shared function so I don't want to have to include the code in each program.

Below is how I did it and it works but didn't know if this was the only way.

DECLARE
v_return NUMBER :=0;
@f_function_name

BEGIN

v_return := f_function_name(parameters);
..
..
END;

Thanks
This post has been answered by Bo Rømer on Apr 9 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2009
Added on Apr 9 2009
8 comments
652 views