DROP TRIGGER
Applies to ❌ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
This statement is used to drop a TRIGGER
from the database catalog.
// Drop a trigger create.dropTrigger("trg").execute();
Dialect support
This example using jOOQ:
dropTrigger("t")
Translates to the following dialect specific expressions:
-- DB2, DERBY, FIREBIRD, HSQLDB, INFORMIX, MARIADB, MYSQL, ORACLE, SQLITE, SQLSERVER, YUGABYTEDB DROP TRIGGER t -- POSTGRES DO $$ BEGIN DROP TRIGGER t; DROP FUNCTION t_function; END; $$ -- ACCESS, ASE, AURORA_MYSQL, AURORA_POSTGRES, BIGQUERY, COCKROACHDB, DUCKDB, EXASOL, H2, HANA, MEMSQL, REDSHIFT, -- SNOWFLAKE, SQLDATAWAREHOUSE, SYBASE, TERADATA, 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!