File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- <!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.118 2007/11/28 15:42:31 petere Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.119 2007/11/28 20:13:06 momjian Exp $ -->
22
33<chapter id="plpgsql">
44 <title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title>
133133
134134 <para>
135135 <application>PL/pgSQL</> functions can also be declared to return
136- a <quote>set</>, or table, of any data type they can return a single
137- instance of. Such a function generates its output by executing
138- <command>RETURN NEXT</> for each desired element of the result
136+ a <quote>set</>, or table. Such a function generates its output by
137+ executing <command>RETURN NEXT</> for each desired element of the result
139138 set, or by using <command>RETURN QUERY</> to output the result of
140139 evaluating a query.
141140 </para>
@@ -1428,7 +1427,7 @@ BEGIN
14281427 WHERE fooid > 0
14291428 LOOP
14301429 -- can do some processing here
1431- RETURN NEXT r; -- return next row of SELECT
1430+ RETURN NEXT r; -- return current row of SELECT
14321431 END LOOP;
14331432 RETURN;
14341433END
You can’t perform that action at this time.
0 commit comments