I am new to Oracle SQL Procedures and trying to workout on few problems on my own. Currently I am having a trouble in solving a particular problem. I want to write a procedure where it would take a particular value from the output of 1st API and use it as an input on the 2nd API.
I wrote two procedure one for 1st API and 2nd for 2nd API but I dont know how to connect each other.
Procedure 1
PROCEDURE dev1(
OUT result CURSOR (
Id VARCHAR(100)
)
)
BEGIN
OPEN result FOR
SELECT
Id
FROM
REST_API1;
END
Procedure 2
PROCEDURE Details_Dev_para2(
IN progID VARCHAR(255),
OUT result CURSOR
)
BEGIN
OPEN result FOR
SELECT
*
FROM
REST_API2;
END
I want the output ID from 1st API to be the Input in ProgID for 2nd API