Oracle Certification, Database Administration, SQL, Application, Programming Reference Books
Function can use Out/Inout Parameter

Can we use an OUT/INOUT parameter in a function?

Yes of course.
 
A Small example:
 
CREATE OR REPLACE FUNCTION TEST(A IN NUMBER, B IN OUT NUMBER,
C  OUT NUMBER)  RETURN NUMBER IS
    D NUMBER(3);
BEGIN
    B := B + A;
    C := B;
    D := A + B + C;
    RETURN D;
END;
 
 
 DECLARE
   A1 NUMBER(3) := 10;
   B1 NUMBER(3) := 20;
   C1 NUMBER(3) := 30;
   D1 NUMBER(3) := 40;
 BEGIN
   D1 := TEST(A1,B1,C1);
   DBMS_OUTPUT.PUT_LINE(A1 || ' ' || B1 || ' ' || C1 || ' ' || D1);
 END;
 
Gowd.

Quick Links:
Do you have an Oracle Question?

Best regards,
Oracle Database, SQL, Application, Programming Tips

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.
The site www.erpgreat.com is not affiliated with or endorsed by any company listed at this site.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.