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

Re: SAP HANA trigger - exception handling

$
0
0

hi Florian,

 

thanks, it is bringing me closer, but have the following issue.

I try to use this statement

DECLARE EXIT HANDLER FOR SQLEXCEPTION

BEGIN

     select xxx.....;

END;

 

It allows me to declare it at the beginning of the code but if I have had any select or IF or any other thing then I am getting syntax error, "DECLARE" is incorrect or misplaced.

 

Is it so that I can use the exit handler only at the beginning of the code?

I was hoping that I can put some selects from the 30 select statement which can fail into exit handler by using begin + end limit for the  handler.

 

If have multiple selects which can fail, how can I set the handler for every individual select?

 

Thanks

Tamas


Viewing all articles
Browse latest Browse all 9165

Trending Articles