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

Error while exceuting a SAP HANA Procedure

$
0
0


Hi HANA Gurus,

 

I am new to HANA SQL Scripting and I have created the following procedure

 

CREATEPROCEDURE"RAJ_HANA"."CURSOR_FOR_LOOP"LANGUAGE SQLSCRIPT

AS

 

 

VAR_EMNO INTEGER;   

CURSOR EMP FORSELECT EMPNO FROM"RAJ_HANA"."EMP";

 

BEGIN 

FOR EMP_CUR AS EMP DO

 

FETCH EMP INTO VAR_EMNO;

 

INSERTINTO"RAJ_HANA"."EMP_1"VALUES(:VAR_EMNO) ;

   

SELECT * FROM"RAJ_HANA"."EMP_1";

 

END FOR;

 

END;

 

Error:

 

 

Could not execute 'Call "RAJ_HANA"."CURSOR_FOR_LOOP"' in 41 ms 684 µs .

 

SAP DBTech JDBC: [150]: statement cancelled or snapshot timestamp already invalidated: [150] "RAJ_HANA"."CURSOR_FOR_LOOP": line 8 col 1 (at pos 147): [150] (range 3): statement cancelled or snapshot timestamp already invalidated

 

 

 

Please help


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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