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