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

Simple Select in Trigger is not supported.

$
0
0

Hi Experts,

 

I have executed the below query. But I am getting the error.

 

 

CREATE TRIGGER MYTRIG_SQLEXCEPTION

AFTER INSERT ON "SREE"."TARGET1"

BEGIN

     DECLARE EXIT HANDLER FOR SQLEXCEPTION SELECT ::SQL_ERROR_CODE, ::SQL_ERROR_MESSAGE FROM DUMMY;

     INSERT INTO "SREE"."MYTAB" VALUES (1);

     INSERT INTO "SREE"."MYTAB" VALUES (1);  -- expected unique violation error: 301

     -- not reached

END;

 

Error : feature not supported: simple select in trigger is not supported: line 4 col 44 (at pos 120)

 

Can anyone help me how to execute the trigger successfully


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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