Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. create table mv_test_table ( columnA number, columnB number );
  2.  
  3. alter table mv_test_table add primary key ( columnA );
  4.  
  5. create materialized view log on mv_test_table with rowid (columnA, columnB) including new values;
  6.  
  7. create materialized view mv_view refresh fast on commit with rowid as select sum(columnB) from mv_test_table;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement