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;
原文地址:https://www.cnblogs.com/fanweisheng/p/11076097.html