DROP FUNCTION
Function
DROP FUNCTION deletes an existing function.
Precautions
- To delete an overloaded function, you must specify the function's parameter (argument) type. For non-overloaded functions, you can delete them by just specifying the function name.
- 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
Parameter |
Description |
Value Range |
---|---|---|
IF EXISTS |
Sends a notice instead of an error if the specified table does not exist. |
- |
function_name |
Specifies the name of the function to be deleted. |
Use an existing function name. |
argmode |
Specifies the mode of a function parameter. |
- |
argname |
Specifies the name of a function parameter. |
- |
argtype |
Specifies the data type of a function parameter. |
- |
CASCADE | RESTRICT |
Specifies how to process related data in the dependent object when a delete operation is performed. |
|
Examples
Delete a function named add_two_number:
1
|
DROP FUNCTION add_two_number; |
Helpful Links
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot