Dropping a Materialized View
Use the DROP MATERIALIZED VIEW statement to remove an existing materialized view from the database.
Examples
The following statement drops the materialized view emp_data
in the sample schema hr
:
DROP MATERIALIZED VIEW emp_data;
The following statement drops the sales_by_month_by_state
materialized view and the underlying table of the materialized view, unless the underlying table was registered in the CREATE
MATERIALIZED
VIEW
statement with the ON
PREBUILT
TABLE
clause:
DROP MATERIALIZED VIEW sales_by_month_by_state;