Available in versions: Dev (3.21) | Latest (3.20) | 3.19

DROP MATERIALIZED VIEW

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

A MATERIALIZED VIEW must be dropped with the dedicated DROP MATERIALIZED VIEW statement in most dialects.

// Drop a materialized view
create.dropMaterializedView("view").execute();

Dialect support

This example using jOOQ:

dropMaterializedView("v")

Translates to the following dialect specific expressions:

Aurora Postgres, BigQuery, CockroachDB, Databricks, Oracle, Postgres, Redshift, Snowflake, Sybase, YugabyteDB

DROP MATERIALIZED VIEW v

DB2

DROP TABLE v

ASE, Access, Aurora MySQL, ClickHouse, Derby, DuckDB, Exasol, Firebird, H2, HSQLDB, Hana, Informix, MariaDB, MemSQL, MySQL, SQLDataWarehouse, SQLServer, SQLite, Teradata, Trino, Vertica

/* UNSUPPORTED */
Generated with jOOQ 3.21. Support in older jOOQ versions may differ. Translate your own SQL on our website

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo