Available in versions: Dev (3.19)

This documentation is for the unreleased development version of jOOQ. Click on the above version links to get this documentation for a supported version of jOOQ.

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:

-- BIGQUERY, COCKROACHDB, ORACLE, POSTGRES, REDSHIFT, SNOWFLAKE, SYBASE, TERADATA, YUGABYTEDB
DROP MATERIALIZED VIEW v

-- DB2
DROP TABLE v

-- ACCESS, ASE, AURORA_MYSQL, AURORA_POSTGRES, DERBY, DUCKDB, EXASOL, FIREBIRD, H2, HANA, HSQLDB, INFORMIX, MARIADB, 
-- MEMSQL, MYSQL, SQLDATAWAREHOUSE, SQLITE, SQLSERVER, TRINO, VERTICA
/* UNSUPPORTED */

(These are currently generated with jOOQ 3.19, see #10141), or translate your own on our website

Feedback

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

The jOOQ Logo