ALTER FUNCTION
更改函数的定义。
概要
ALTERFUNCTION name ( [ [argmode] [argname] argtype [,...] ] )
action [, ... ] [RESTRICT]
ALTERFUNCTION name ( [ [argmode] [argname] argtype [,...] ] )
RENAMETO new_name
ALTERFUNCTION name ( [ [argmode] [argname] argtype [,...] ] )
OWNERTO new_owner
ALTERFUNCTION name ( [ [argmode] [argname] argtype [,...] ] )
SETSCHEMA new_schema
where actionis one of:
{CALLEDON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT}
{IMMUTABLE| STABLE | VOLATILE}
{[EXTERNAL]SECURITY INVOKER | [EXTERNAL] SECURITY DEFINER}
描述
ALTER FUNCTION更改函数的定义。
你必须拥有这个函数才能去更改函数的定义。要更改函数的模式,您还必须对新模式具有CREATE