I have a stored procedure that returns some data, something like this:
CREATE PROCEDURE MyProc()
...
BEGIN
SELECT "COL1" FROM "MYTABLE";
END
In another procedure I want to capture that result set:
CREATE PROCEDURE CallingProc ()
...
BEGIN
...
CALL MyProc;
...
END
So, how do I get the result set returning from MyProc?
I tried things like: MyResult = CALL MyProc; with no avail.
Thank you for your response.