Trigger based on sysdate
问题 I have a table Table Schema: CREATE TABLE CHARGES ( total NUMBER(30), admitdate TIMESTAMP(6), dischargedate TIMESTAMP(30) ) Trigger Algorithm: if { dischargedate="null" then total=admitdate-sysdate=difference in days * Total Do this every day at 12:00(24 Hr. Format) } else { Do Nothing; } My question is what to do if the system is offline at 12:00 am. This problem will not allow the trigger to run. 回答1: To run a piece of code on a specific time, you can use jobs . Triggers are there only to