3 PostgreSQL documentation
6 <refentry id=
"SQL-DEALLOCATE">
8 <refentrytitle id=
"sql-deallocate-title">DEALLOCATE
</refentrytitle>
9 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
13 <refname>DEALLOCATE
</refname>
14 <refpurpose>deallocate a prepared statement
</refpurpose>
17 <indexterm zone=
"sql-deallocate">
18 <primary>DEALLOCATE
</primary>
21 <indexterm zone=
"sql-deallocate">
22 <primary>prepared statements
</primary>
23 <secondary>removing
</secondary>
28 DEALLOCATE [ PREPARE ] {
<replaceable class=
"parameter">name
</replaceable> | ALL }
33 <title>Description
</title>
36 <command>DEALLOCATE
</command> is used to deallocate a previously
37 prepared SQL statement. If you do not explicitly deallocate a
38 prepared statement, it is deallocated when the session ends.
42 For more information on prepared statements, see
<xref
43 linkend=
"sql-prepare" endterm=
"sql-prepare-title">.
48 <title>Parameters
</title>
52 <term><literal>PREPARE
</literal></term>
55 This key word is ignored.
61 <term><replaceable class=
"parameter">name
</replaceable></term>
64 The name of the prepared statement to deallocate.
70 <term><literal>ALL
</literal></term>
73 Deallocate all prepared statements.
81 <title>Compatibility
</title>
84 The SQL standard includes a
<command>DEALLOCATE
</command>
85 statement, but it is only for use in embedded SQL.
90 <title>See Also
</title>
92 <simplelist type=
"inline">
93 <member><xref linkend=
"sql-execute" endterm=
"sql-execute-title"></member>
94 <member><xref linkend=
"sql-prepare" endterm=
"sql-prepare-title"></member>