execute.7

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 54 行

7
54
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "EXECUTE" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEEXECUTE \- execute a prepared statement.SH SYNOPSIS.sp.nfEXECUTE \fIname\fR [ (\fIparameter\fR [, ...] ) ].sp.fi.SH "DESCRIPTION".PP\fBEXECUTE\fR is used to execute a previously preparedstatement. Since prepared statements only exist for the duration of asession, the prepared statement must have been created by a\fBPREPARE\fR statement executed earlier in thecurrent session..PPIf the \fBPREPARE\fR statement that created the statementspecified some parameters, a compatible set of parameters must bepassed to the \fBEXECUTE\fR statement, or else anerror is raised. Note that (unlike functions) prepared statements arenot overloaded based on the type or number of their parameters; thename of a prepared statement must be unique within a database session..PPFor more information on the creation and usage of prepared statements,see PREPARE [\fBprepare\fR(7)]..SH "PARAMETERS".TP\fB\fIname\fB\fRThe name of the prepared statement to execute..TP\fB\fIparameter\fB\fRThe actual value of a parameter to the prepared statement. Thismust be an expression yielding a value that is compatible withthe data type of this parameter, as was determined when theprepared statement was created..SH "OUTPUTS".PPThe command tag returned by \fBEXECUTE\fRis that of the prepared statement, and not EXECUTE..SH "EXAMPLES".PPExamples are given in the Examples [\fBprepare\fR(7)] section of the PREPARE [\fBprepare\fR(l)] documentation..SH "COMPATIBILITY".PPThe SQL standard includes an \fBEXECUTE\fR statement,but it is only for use in embedded SQL. This version of the\fBEXECUTE\fR statement also uses a somewhat differentsyntax..SH "SEE ALSO"DEALLOCATE [\fBdeallocate\fR(7)], PREPARE [\fBprepare\fR(l)]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?