Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d42c0f

Browse files
committed
A patch for doc/src/sgml/plsql.sgml to add a little more info about PL/pgSQL
EXECUTE.---------- Robert B. Easter
1 parentdf389d1 commit5d42c0f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

‎doc/src/sgml/plsql.sgml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.12 2001/01/06 12:26:08 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.13 2001/01/09 15:26:16 momjian Exp $
33
-->
44

55
<chapter id="plsql">
@@ -488,19 +488,29 @@ PERFORM <replaceable>query</replaceable>
488488
<listitem>
489489
<cmdsynopsis>
490490
<command>EXECUTE</command>
491-
<arg choice="req"><replaceable class="command">query</replaceable></arg>
491+
<arg choice="req"><replaceable class="command">query-string</replaceable></arg>
492492
</cmdsynopsis>
493-
493+
494+
<para>
495+
where <replaceable>query-string</replaceable> is a string
496+
of type TEXT containing the <replaceable>query</replaceable> to be executed.
497+
</para>
498+
494499
<para>
495500
Unlike all other queries in PL/pgSQL, a
496501
<replaceable>query</replaceable> run by an EXECUTE statement
497502
is not prepared and saved just once during the life of the
498503
server. Instead, the <replaceable>query</replaceable> is
499-
prepared each time the statement is run.This allows the
500-
<replaceable>query</replaceable>to be dynamically created
504+
prepared each time the statement is run.The
505+
<replaceable>query-string</replaceable>can be dynamically created
501506
within the procedure to perform actions on variable tables and
502507
fields.
503508
</para>
509+
510+
<para>
511+
The results from SELECT queries are discarded by EXECUTE unless
512+
SELECT INTO is used to save the results into a table.
513+
</para>
504514

505515
<para>
506516
An example:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp