Available in versions: Dev (3.21)
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 FUNCTION with signature
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
When working with a dialect that supports FUNCTION
overloading, the DROP FUNCTION statement may need to be supplied with an explicit function signature, similar to the signature provided with the CREATE FUNCTION statement. Some dialects may require only a list of parameter types without parameter names. jOOQ's API requires passing the complete parameter specification instead.
// Drop a function create.dropFunction("proc").parameters(in("p1", INTEGER), in("p2", INTEGER)).execute();
Dialect support
This example using jOOQ:
dropFunction("p").parameters(in("p1", INTEGER), in("p2", INTEGER))
Translates to the following dialect specific expressions:
BigQuery, Firebird, HSQLDB, Hana, MariaDB, MySQL, Oracle, SQLDataWarehouse, SQLServer
DROP FUNCTION p
DB2
DROP FUNCTION p( integer, integer )
Exasol, Postgres, Vertica, YugabyteDB
DROP FUNCTION p( p1 int, p2 int )
Informix
DROP FUNCTION p( p1 integer, p2 integer )
ASE, Access, Aurora MySQL, Aurora Postgres, ClickHouse, CockroachDB, Databricks, Derby, DuckDB, H2, MemSQL, Redshift, SQLite, Snowflake, Sybase, Teradata, Trino
/* 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!