statement

DEALLOCATE

Removes a prepared statement from the current session; it does not undo executions. Example target: PostgreSQL 17. Use only the isolated starter dataset; setup and expected results are in the batch evidence.

Formal Syntax & Structure

sql syntaxsql
DEALLOCATE name

Working Example

Example Snippetsql
PREPARE lab_lookup(integer) AS SELECT name FROM customers WHERE id=$1;DEALLOCATE lab_lookup;
SQL Reference