Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5d42c0f3
Commit
5d42c0f3
authored
Jan 09, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A patch for doc/src/sgml/plsql.sgml to add a little more info about PL/pgSQL
EXECUTE. -- -------- Robert B. Easter
parent
df389d16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
doc/src/sgml/plsql.sgml
doc/src/sgml/plsql.sgml
+15
-5
No files found.
doc/src/sgml/plsql.sgml
View file @
5d42c0f3
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.1
2 2001/01/06 12:26:08 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.1
3 2001/01/09 15:26:16 momjian
Exp $
-->
-->
<chapter id="plsql">
<chapter id="plsql">
...
@@ -488,20 +488,30 @@ PERFORM <replaceable>query</replaceable>
...
@@ -488,20 +488,30 @@ PERFORM <replaceable>query</replaceable>
<listitem>
<listitem>
<cmdsynopsis>
<cmdsynopsis>
<command>EXECUTE</command>
<command>EXECUTE</command>
<arg choice="req"><replaceable class="command">query</replaceable></arg>
<arg choice="req"><replaceable class="command">query
-string
</replaceable></arg>
</cmdsynopsis>
</cmdsynopsis>
<para>
where <replaceable>query-string</replaceable> is a string
of type TEXT containing the <replaceable>query</replaceable> to be executed.
</para>
<para>
<para>
Unlike all other queries in PL/pgSQL, a
Unlike all other queries in PL/pgSQL, a
<replaceable>query</replaceable> run by an EXECUTE statement
<replaceable>query</replaceable> run by an EXECUTE statement
is not prepared and saved just once during the life of the
is not prepared and saved just once during the life of the
server. Instead, the <replaceable>query</replaceable> is
server. Instead, the <replaceable>query</replaceable> is
prepared each time the statement is run. Th
is allows th
e
prepared each time the statement is run. The
<replaceable>query
</replaceable> to
be dynamically created
<replaceable>query
-string</replaceable> can
be dynamically created
within the procedure to perform actions on variable tables and
within the procedure to perform actions on variable tables and
fields.
fields.
</para>
</para>
<para>
The results from SELECT queries are discarded by EXECUTE unless
SELECT INTO is used to save the results into a table.
</para>
<para>
<para>
An example:
An example:
<programlisting>
<programlisting>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment