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.

12 lines
618 B

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