DROP FUNCTION

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

Syntax

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

Parameters

schema

Specifies a schema. If multiple schemas are defined in the database, include the schema name. For example:

myschema.thisDbObject
function‑name 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