View previous topic :: View next topic |
Author |
Message |
dilip Beginner
Joined: 08 Nov 2003 Posts: 7 Topics: 7 Location: india
|
Posted: Sat Nov 08, 2003 5:28 am Post subject: Procedural constructs in DB2 trigger body |
|
|
Hi,
Currently WLM environment is not loaded.
Is it possible to use procedural constructs (such as DECLARE, IF, WHILE ...) in the body of Trigger in DB2.
Dilip _________________ Dilip T. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sat Nov 08, 2003 9:05 am Post subject: |
|
|
Dilip,
Not really. However you can have trigger execute(call) a stored procedure which have the procedural constructs.
Code: |
CREATE TRIGGER TRIGNAME AFTER INSERT ON TABLE
REFERENCING NEW AS NEW FOR EACH ROW MODE DB2SQL
CALL <SPNAME>(...);
|
Hope this helps...
cheers
kolusu |
|
Back to top |
|
 |
|
|