alter_function 中文man頁面
NAME
ALTER FUNCTION - 修改一個函數的定義
SYNOPSIS
ALTER FUNCTION name ( [ type [, ...] ] ) RENAME TO newname
DESCRIPTION 描述
ALTER FUNCTION 修改一個函數的定義,目前***的功能是修改它的名字。
PARAMETERS 參數
- name
一個現有的函數的名字(可以有模式修飾)。- type
該函數參數的數據類型。- newname
函數的新名字。
EXAMPLES 例子
把名字為 sqrt,參數類型為 integer 的函數重命名為 square_root:
ALTER FUNCTION sqrt(integer) RENAME TO square_root;
COMPATIBILITY 兼容性
在 SQL 標準里有一個 ALTER FUNCTION 語句,但是它并沒有提供重命名函數的選項。
SEE ALSO 參見
CREATE FUNCTION [create_function(7)], DROP FUNCTION [drop_function(l)]
#p#
NAME
ALTER FUNCTION - change the definition of a function
SYNOPSIS
ALTER FUNCTION name ( [ type [, ...] ] ) RENAME TO newname
DESCRIPTION
ALTER FUNCTION changes the definition of a function. The only functionality is to rename the function.
PARAMETERS
- name
- The name (optionally schema-qualified) of an existing function.
- type
- The data type of an argument of the function.
- newname
- The new name of the function.
EXAMPLES
To rename the function sqrt for type integer to square_root:
ALTER FUNCTION sqrt(integer) RENAME TO square_root;
COMPATIBILITY
There is an ALTER FUNCTION statement in the SQL standard, but it does not provide the option to rename the function.
SEE ALSO
CREATE FUNCTION [create_function(7)], DROP FUNCTION [drop_function(l)]