Files
doc-exports/docs/dws/dev/dws_06_0360.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

4.6 KiB

DROP MATERIALIZED VIEW

Function

Deletes a materialized view. This syntax is supported only by clusters of 8.2.1.100 or later.

Precautions

None

Syntax

1
2
DROP MATERIALIZED VIEW [ IF EXISTS ]
{[schema.]materialized_view_name} [, ...] [ CASCADE | RESTRICT ];

Parameter Description

  • IF EXISTS

    Sends a notice instead of an error if the specified materialized view does not exist.

  • materialized_view_name

    Name of the materialized view to be deleted.

  • CASCADE | RESTRICT
    • CASCADE: automatically deletes all objects that are contained in the schema to be deleted.
    • RESTRICT: refuses to delete the schema that contains any objects. This is the default.

Examples

Delete a materialized view.

1
DROP MATERIALIZED VIEW mv1;