📄 execute.7
字号:
.\\" 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -