Drop Materialized View Statement; Syntax Description Of Drop Materialized View; Authorization And Availability Requirements; Example Of Drop Materialized View - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

DROP MATERIALIZED VIEW Statement

"Syntax Description of DROP MATERIALIZED VIEW"

"Example of DROP MATERIALIZED VIEW"

The DROP MATERIALIZED VIEW statement drops a materialized view. You cannot drop a
materialized view that is used by other materialized views or by regular views unless the
CASCADE option is used. This command removes the materialized view from all the MVGROUPs
it belongs to. It could cause recompilation of SQL statements that used the materialized view,
as well as any of its base tables.
DROP { MATERIALIZED VIEW | MV } mv-name [CASCADE]
Syntax Description of DROP MATERIALIZED VIEW
mv-name
specifies the ANSI logical name for the materialized view to drop of the form:
[schema-name.]mv-name
where each part of the name is a valid SQL identifier with a maximum of 128 characters.
mv-name must be unique among table, view, and procedure names in the schema. For more
information, see
CASCADE
any objects that depend on the materialized view are dropped. This includes materialized
views and views.

Authorization and Availability Requirements

To drop a materialized view, you must be the owner of the schema or the owner of the
materialized view.
Example of DROP MATERIALIZED VIEW
This example drops a materialized view:
DROP MATERIALIZED VIEW PUBSCH.DETAIL_MV
114
SQL Statements
"Database Object Names" (page
242).

Advertisement

Table of Contents
loading

Table of Contents