2002-08-27 06:55:12 +02:00
|
|
|
<!--
|
2010-09-20 22:08:53 +02:00
|
|
|
doc/src/sgml/ref/deallocate.sgml
|
2002-08-27 06:55:12 +02:00
|
|
|
PostgreSQL documentation
|
|
|
|
-->
|
|
|
|
|
|
|
|
<refentry id="SQL-DEALLOCATE">
|
2014-02-24 03:25:35 +01:00
|
|
|
<indexterm zone="sql-deallocate">
|
|
|
|
<primary>DEALLOCATE</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="sql-deallocate">
|
|
|
|
<primary>prepared statements</primary>
|
|
|
|
<secondary>removing</secondary>
|
|
|
|
</indexterm>
|
|
|
|
|
2002-08-27 06:55:12 +02:00
|
|
|
<refmeta>
|
2010-04-03 09:23:02 +02:00
|
|
|
<refentrytitle>DEALLOCATE</refentrytitle>
|
2008-11-14 11:22:48 +01:00
|
|
|
<manvolnum>7</manvolnum>
|
2002-08-27 06:55:12 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2003-04-27 01:56:51 +02:00
|
|
|
|
2002-08-27 06:55:12 +02:00
|
|
|
<refnamediv>
|
2003-04-27 01:56:51 +02:00
|
|
|
<refname>DEALLOCATE</refname>
|
|
|
|
<refpurpose>deallocate a prepared statement</refpurpose>
|
2002-08-27 06:55:12 +02:00
|
|
|
</refnamediv>
|
|
|
|
|
2003-04-27 01:56:51 +02:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<synopsis>
|
2007-04-12 08:53:49 +02:00
|
|
|
DEALLOCATE [ PREPARE ] { <replaceable class="parameter">name</replaceable> | ALL }
|
2003-04-27 01:56:51 +02:00
|
|
|
</synopsis>
|
2002-08-27 06:55:12 +02:00
|
|
|
</refsynopsisdiv>
|
|
|
|
|
2003-04-27 01:56:51 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
2002-08-27 06:55:12 +02:00
|
|
|
|
|
|
|
<para>
|
2003-04-27 01:56:51 +02:00
|
|
|
<command>DEALLOCATE</command> 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.
|
2002-08-27 06:55:12 +02:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2003-04-27 01:56:51 +02:00
|
|
|
For more information on prepared statements, see <xref
|
2010-04-03 09:23:02 +02:00
|
|
|
linkend="sql-prepare">.
|
2002-08-27 06:55:12 +02:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2003-04-27 01:56:51 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>Parameters</title>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>PREPARE</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
This key word is ignored.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
2006-01-15 23:18:47 +01:00
|
|
|
<term><replaceable class="parameter">name</replaceable></term>
|
2003-04-27 01:56:51 +02:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of the prepared statement to deallocate.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-04-12 08:53:49 +02:00
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><literal>ALL</literal></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Deallocate all prepared statements.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2003-04-27 01:56:51 +02:00
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Compatibility</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The SQL standard includes a <command>DEALLOCATE</command>
|
|
|
|
statement, but it is only for use in embedded SQL.
|
|
|
|
</para>
|
2002-08-27 06:55:12 +02:00
|
|
|
</refsect1>
|
2004-09-20 02:04:19 +02:00
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See Also</title>
|
|
|
|
|
|
|
|
<simplelist type="inline">
|
2010-04-03 09:23:02 +02:00
|
|
|
<member><xref linkend="sql-execute"></member>
|
|
|
|
<member><xref linkend="sql-prepare"></member>
|
2004-09-20 02:04:19 +02:00
|
|
|
</simplelist>
|
|
|
|
</refsect1>
|
2002-08-27 06:55:12 +02:00
|
|
|
</refentry>
|