DROP FUNCTION

Function

DROP FUNCTION deletes an existing function.

Precautions

If a function involves operations on temporary tables, the function cannot be deleted by running DROP FUNCTION.

Syntax

1
2
DROP FUNCTION [ IF EXISTS ] function_name 
[ ( [ {[ argmode ] [ argname ] argtype} [, ...] ] ) [ CASCADE | RESTRICT ] ];

Parameter Description

Examples

Delete a function named add_two_number.

1
DROP FUNCTION add_two_number;

Helpful Links

ALTER FUNCTION, CREATE FUNCTION