Answers for "oracle function in out"

SQL
0

oracle function in out

CREATE OR REPLACE FUNCTION TESTME(A IN NUMBER, 
                                  B OUT NUMBER, 
                                  C IN OUT NUMBER) RETURN NUMBER IS
BEGIN
    B := A + 10;
    C := C + A;
    RETURN (100);
END;
/

DECLARE
    X NUMBER := 10;
    Y NUMBER := 20;
    Z NUMBER;
BEGIN
    Z := TESTME(X, Z, Y);
    DBMS_OUTPUT.PUT_LINE('X: ' || X || '  Y: ' || Y ||   '  Z: ' || Z);
    -- X: 10  Y: 30  Z: 100
END;
Posted by: Guest on March-04-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language