Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Get first entry of a table (return parameter of procedure)

$
0
0

Hello Sagar,

 

I think I figured it out in the meantime.

Originally, I wanted to loop through the result set coming from proc1.
But I can't create a cursor for a result set.
What I did is: I created a result view with proc1.

 

In my calling procedure, I declare the cursor something like this:

 

declare cursor c_cursor for

select * from RESULT_PROC_VIEW WITH PARAMETERS ('placeholder' = ('$$myParameter$$', '''value'''));

 

This works, the cursor is declared, and I can loop through the result set.

 

Many thanks for your hint.

 

Regards, Rolf


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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