Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Call stored Function from SQL statement?
create package a as
FUNCTION sum_nums (a IN NUMBER, b IN NUMBER, c IN NUMBER) RETURN number;
PRAGMA RESTRICT_REFERENCES(sum_nums ,WNDS,WNPS);
end;
create package body a as
//////////////////////////////////////////////////////////////////////////// /////////////////////////
//////////////////////////////////////////////////////////////////////////// /////////////////////////
select a.sum_nums (col1,col2,clo3) from tablename; Received on Thu Jan 21 1999 - 04:56:32 CST