Skip to content

Commit 12a2121

Browse files
committed
Fix slightly misleading description of PERFORM syntax.
1 parent ae72283 commit 12a2121

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.46 2004/08/16 17:52:06 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.47 2004/09/24 18:54:14 tgl Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -1073,10 +1073,12 @@ END;
10731073
PERFORM <replaceable>query</replaceable>;
10741074
</synopsis>
10751075

1076-
This executes <replaceable>query</replaceable>, which must be a
1077-
<command>SELECT</command> statement, and discards the
1078-
result. <application>PL/pgSQL</application> variables are
1079-
substituted in the query as usual. Also, the special variable
1076+
This executes <replaceable>query</replaceable> and discards the
1077+
result. Write the <replaceable>query</replaceable> the same
1078+
way as you would in an SQL <command>SELECT</> command, but replace the
1079+
initial keyword <command>SELECT</> with <command>PERFORM</command>.
1080+
<application>PL/pgSQL</application> variables will be
1081+
substituted into the query as usual. Also, the special variable
10801082
<literal>FOUND</literal> is set to true if the query produced at
10811083
least one row or false if it produced no rows.
10821084
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy