Commit 12a2121c authored by Tom Lane's avatar Tom Lane

Fix slightly misleading description of PERFORM syntax.

parent ae722838
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.46 2004/08/16 17:52:06 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.47 2004/09/24 18:54:14 tgl Exp $
--> -->
<chapter id="plpgsql"> <chapter id="plpgsql">
...@@ -1073,10 +1073,12 @@ END; ...@@ -1073,10 +1073,12 @@ END;
PERFORM <replaceable>query</replaceable>; PERFORM <replaceable>query</replaceable>;
</synopsis> </synopsis>
This executes <replaceable>query</replaceable>, which must be a This executes <replaceable>query</replaceable> and discards the
<command>SELECT</command> statement, and discards the result. Write the <replaceable>query</replaceable> the same
result. <application>PL/pgSQL</application> variables are way as you would in an SQL <command>SELECT</> command, but replace the
substituted in the query as usual. Also, the special variable initial keyword <command>SELECT</> with <command>PERFORM</command>.
<application>PL/pgSQL</application> variables will be
substituted into the query as usual. Also, the special variable
<literal>FOUND</literal> is set to true if the query produced at <literal>FOUND</literal> is set to true if the query produced at
least one row or false if it produced no rows. least one row or false if it produced no rows.
</para> </para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment