What is the difference between Views and Materiali

2019-01-12 13:35发布

What is the difference between Views and Materialized Views in Oracle?

8条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-12 14:10

Adding to Mike McAllister's pretty-thorough answer...

Materialized views can only be set to refresh automatically through the database detecting changes when the view query is considered simple by the compiler. If it's considered too complex, it won't be able to set up what are essentially internal triggers to track changes in the source tables to only update the changed rows in the mview table.

When you create a materialized view, you'll find that Oracle creates both the mview and as a table with the same name, which can make things confusing.

查看更多
欢心
3楼-- · 2019-01-12 14:11

Materialised view - a table on a disk that contains the result set of a query

Non-materiased view - a query that pulls data from the underlying table

查看更多
登录 后发表回答