SQL Commands / Cursors & Prepared Statements
DEALLOCATE
Read the PG 18 manualdeallocate a prepared statement
Reading PG 18current·documented in 25 of 30 versions, 7.3 to 20
Syntax
DEALLOCATE [ PREPARE ] { name | ALL }
Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
Description
DEALLOCATE is used to deallocate a previously prepared SQL statement. If you do not explicitly deallocate a prepared statement, it is deallocated when the session ends.
For more information on prepared statements, see PREPARE.
Parameters
PREPAREThis key word is ignored.
nameThe name of the prepared statement to deallocate.
ALLDeallocate all prepared statements.
Compatibility
The SQL standard includes a DEALLOCATE statement, but it is only for use in embedded SQL.
See Also
EXECUTE, PREPAREVersion history 5
Related entries
Definition snapshot: b7bd9cda · English manual source