简体   繁体   中英

How could i update a table each time a materialized view is refreshed?

So i have a table which contains the last modification or refresh date for every MV in our db. I would like to update this value each time a MV refreshes. I thought the following could be possible, but i dont know how to accomplish it :

 CREATE MATERIALIZED VIEW ...
 .
 .
 ** UPDATE TABLE AFTER REFRESH **
 .
 .
 AS
 SELECT ...... 

Thx in advance.

使用字典

select mview_name , last_refresh_type,last_refresh_date from all_mviews;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM