-
+
PL/pgSQL - SQL Procedural Language
-
PL/pgSQL> functions can also be declared to return a
- group of values, either as a single row, or a group of rows, like a
- table. Such a function generates its output by executing
- RETURN NEXT> for each desired element of the result set,
- or by using RETURN QUERY> to output the result of
+
PL/pgSQL> functions can also be declared to return
+ a set> (or table) of any data type that can be returned as
+ a single instance. Such a function generates its output by executing
+ RETURN NEXT> for each desired element of the result
+ set, or by using RETURN QUERY> to output the result of
evaluating a query.