drop_function.7
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 69 行
7
69 行
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "DROP FUNCTION" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEDROP FUNCTION \- remove a function.SH SYNOPSIS.sp.nfDROP FUNCTION [ IF EXISTS ] \fIname\fR ( [ [ \fIargmode\fR ] [ \fIargname\fR ] \fIargtype\fR [, ...] ] ) [ CASCADE | RESTRICT ].sp.fi.SH "DESCRIPTION".PP\fBDROP FUNCTION\fR removes the definition of an existingfunction. To execute this command the user must be theowner of the function. The argument types to thefunction must be specified, since several different functionsmay exist with the same name and different argument lists..SH "PARAMETERS".TP\fBIF EXISTS\fRDo not throw an error if the function does not exist. A notice is issued in this case..TP\fB\fIname\fB\fRThe name (optionally schema-qualified) of an existing function..TP\fB\fIargmode\fB\fRThe mode of an argument: either IN, OUT,or INOUT. If omitted, the default is IN.Note that \fBDROP FUNCTION\fR does not actually payany attention to OUT arguments, since only the inputarguments are needed to determine the function's identity.So it is sufficient to list the IN and INOUTarguments..TP\fB\fIargname\fB\fRThe name of an argument.Note that \fBDROP FUNCTION\fR does not actually payany attention to argument names, since only the argument datatypes are needed to determine the function's identity..TP\fB\fIargtype\fB\fRThe data type(s) of the function's arguments (optionally schema-qualified), if any..TP\fBCASCADE\fRAutomatically drop objects that depend on the function (such asoperators or triggers)..TP\fBRESTRICT\fRRefuse to drop the function if any objects depend on it. Thisis the default..SH "EXAMPLES".PPThis command removes the square root function:.sp.nfDROP FUNCTION sqrt(integer);.sp.fi.SH "COMPATIBILITY".PPA \fBDROP FUNCTION\fR statement is defined in the SQLstandard, but it is not compatible with this command..SH "SEE ALSO"CREATE FUNCTION [\fBcreate_function\fR(7)], ALTER FUNCTION [\fBalter_function\fR(l)]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?