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

Handling exception in a for loop

$
0
0

Hi,

 

I want to write exception block inside a for loop like oracle as below.

 

for i in c1 loop

    begin

      insert into table values (i.id, i...);

 

    commit;

 

   exception when others then

     insert into erro_log values (i.id, i...);

 

   end;

end loop;


I want to handle same thing in hana. Is it possible in hana?


Does anybody knows how to handle exception in a for loop statement  or has an other solution to solve my problem described above?

 

Best regards,

Kishore




Viewing all articles
Browse latest Browse all 6412

Trending Articles