DROP FUNCTION deletes an existing function.
If a function involves operations on temporary tables, the function cannot be deleted by running DROP FUNCTION.
1 2 | DROP FUNCTION [ IF EXISTS ] function_name [ ( [ {[ argmode ] [ argname ] argtype} [, ...] ] ) [ CASCADE | RESTRICT ] ]; |
Sends a notice instead of an error if the function does not exist.
Specifies the name of the function to be deleted.
Value range: An existing function name.
Specifies the mode of a function parameter.
Specifies the name of a function parameter.
Specifies the data types of a function parameter.
Delete a function named add_two_number.
1 | DROP FUNCTION add_two_number; |