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

Re: How to navigate through a cursor?

$
0
0

Hi Ben,

 

It will help if you can post your code and what you are trying to achieve. The code similar to the following works for me in a procedure.

 

CREATE PROCEDURE MY_CURSOR_PROC ()

LANGUAGE SQLSCRIPT

AS

   CURSOR my_cursor (input_1 NVARCHAR(5), input_2 NVARCHAR(5))

   FOR

     select col_1, col_2

     from my_table

     where col_3 = 'some_value';

BEGIN

   FOR mycursor_row AS my_cursor('input_value_1', 'input_value_1') DO

     Do_something;

     Do_another_thing;

   END FOR;

END;

 

Regards,

 

Ravi


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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