DROP FUNCTION

Drops a SQL function or User Defined Function (UDF) from the Vertica catalog.

Syntax

DROP FUNCTION [[database.]schema.]function[,…] ( [ arg‑list ] )

Parameters

[database.]schema

Specifies a schema, by default public. If schema is any schema other than public, you must supply the schema name. For example:

myschema.thisDbObject

If you specify a database, it must be the current database.

function The SQL function to drop.
arg‑list

A comma-delimited list of arguments as defined for this function when it was created, specified as follows:

[arg‑name] arg‑type[,…]

where arg‑name optionally qualifies arg‑type:

  • arg‑name is typically a column name.
  • arg‑type is the name of an SQL data type supported by Vertica.

Privileges

One of the following:

Requirements

Example

The following command drops the zerowhennull function in the macros schema:

=>  DROP FUNCTION macros.zerowhennull(x INT);
DROP FUNCTION