DROP FUNCTION
command to remove an existing user-defined function (UDF).
Parameter or clause | Description |
---|---|
function_name | Name of the UDF you want to drop. |
( argument_type [ , … ] ) | Optional: Argument types of the function.Specify the argument types when the name of the function you want to drop isn’t unique within the schema. |
IF EXISTS | Do not return an error if the specified function does not exist. A notice is issued in this case. |
DROP FUNCTION function_name();
drops a function with zero arguments.DROP FUNCTION function_name;
drops a function with any number of arguments, including zero, as long as the name is unique.f1(int,int)
is the only function named f1
, you can drop it by name or full signature: