Advertisement
jelledebock

SQLTrigger

Jan 26th, 2015
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.26 KB | None | 0 0
  1. 000100 CREATE TRIGGER ROOMDELT
  2. 000200 AFTER DELETE ON HOG0009.ROOM
  3. 000210 REFERENCING OLD AS O
  4. 000300 FOR EACH ROW MODE DB2SQL
  5. 000400 BEGIN ATOMIC
  6. 000410 INSERT INTO HOG0009.LOGS(CHANGE_DESC) VALUES ('DELETE OF ' ||
  7. 000420 O.ROOM_DESCRIPTION);
  8. 000500 END @
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement