ALTER FUNCTIONSection: SQL Commands (7)Updated: 2003-11-02 |
ALTER FUNCTIONSection: SQL Commands (7)Updated: 2003-11-02 |
ALTER FUNCTION name ( [ type [, ...] ] ) RENAME TO newname
ALTER FUNCTION changes the definition of a function. The only functionality is to rename the function.
To rename the function sqrt for type integer to square_root:
ALTER FUNCTION sqrt(integer) RENAME TO square_root;
There is an ALTER FUNCTION statement in the SQL standard, but it does not provide the option to rename the function.