-
Executing a Command With No Result
+
Executing a Command with No Result
For any SQL command that does not return rows, for example
-
Executing a Query with a Single-row Result
+
Executing a Query with a Single-Row Result
-
Quoting Values In Dynamic Queries
+
Quoting Values in Dynamic Queries
-
Returning From a Procedure
+
Returning from a Procedure
A procedure does not have a return value. A procedure can therefore end
-
Looping Through Query Results
+
Looping through Query Results
Using a different type of FOR loop, you can iterate through
-
Looping Through Arrays
+
Looping through Arrays
The FOREACH loop is much like a FOR loop,
-
Obtaining Information About an Error
+
Obtaining Information about an Error
Exception handlers frequently need to identify the specific error that
-
Looping Through a Cursor's Result
+
Looping through a Cursor's Result
There is a variant of the FOR statement that allows
-
A PL/pgSQL Trigger Function For Auditing
+
A PL/pgSQL Trigger Function for Auditing
This example trigger ensures that any insert, update or delete of a row
-
A PL/pgSQL View Trigger Function For Auditing
+
A PL/pgSQL View Trigger Function for Auditing
This example uses a trigger on the view to make it updatable, and
-
A PL/pgSQL Trigger Function For Maintaining A Summary Table
+
A PL/pgSQL Trigger Function for Maintaining a Summary Table
The schema detailed here is partly based on the Grocery Store
-
PL/pgSQL Under the Hood
+
PL/pgSQL under the Hood
This section discusses some implementation details that are
-
Additional Compile-time and Run-time Checks
+
Additional Compile-Time and Run-Time Checks
To aid the user in finding instances of simple but common problems before