You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
499 B

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Trigger CUR_TASK_MST
  3. --------------------------------------------------------
  4. CREATE OR REPLACE EDITIONABLE TRIGGER "MIRLE"."CUR_TASK_MST"
  5. AFTER UPDATE OF END_TIME ON CUR_TASK_MST
  6. BEGIN
  7. insert into HIS_TASK_MST
  8. select CUR_TASK_MST.*, systimestamp as "HISTORY_TIME" from CUR_TASK_MST where end_time is not null;
  9. delete CUR_TASK_MST where end_time is not null;
  10. END;
  11. /
  12. ALTER TRIGGER "MIRLE"."CUR_TASK_MST" ENABLE;