database - Creating event based job/scheduler in oracle DB -


i have oracle trigger acts after insert, update or delete on table1 , updates price column/value on table2 based on dates gets on table1.

only current price (the price on current date) needs updated on table2. example insert record on table1 future date between 28/01/2016 30/01/2016. need price updated on table2 not until 28/01/2106. how can functionality happen automatically.

submit dbms job run daily.. write procedure example below scan , apply channges done today . , call through job.

exec dbms_job.submit(:outjobno, 'check_price_changes;', trunc(sysdate)+1, 'trunc(sysdate)+1'); -- run everyday nightly. 

Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -