Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Capturing returned data from Stored Procedures

$
0
0

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.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>