diff options
| author | Andrew Dunstan <andrew@dunslane.net> | 2005-11-19 17:39:45 +0000 |
|---|---|---|
| committer | Andrew Dunstan <andrew@dunslane.net> | 2005-11-19 17:39:45 +0000 |
| commit | daea4d8eaee010f41e46bb98cd1b2da2f9fb75d9 (patch) | |
| tree | a7232bf09a071a87a955337395b9cefd4a62a8e8 /doc/src/sgml/ref/drop_table.sgml | |
| parent | 8ef289dba12f16f3692c235863a887672499a5d9 (diff) | |
| download | postgresql-daea4d8eaee010f41e46bb98cd1b2da2f9fb75d9.tar.gz | |
DROP objecttype IF EXISTS for the following objects:
table view index sequence schema type domain conversion
Diffstat (limited to 'doc/src/sgml/ref/drop_table.sgml')
| -rw-r--r-- | doc/src/sgml/ref/drop_table.sgml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/drop_table.sgml b/doc/src/sgml/ref/drop_table.sgml index 40cc8167ef..8e7cedd71d 100644 --- a/doc/src/sgml/ref/drop_table.sgml +++ b/doc/src/sgml/ref/drop_table.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/drop_table.sgml,v 1.22 2005/01/04 00:39:53 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/drop_table.sgml,v 1.23 2005/11/19 17:39:44 adunstan Exp $ PostgreSQL documentation --> @@ -20,7 +20,7 @@ PostgreSQL documentation <refsynopsisdiv> <synopsis> -DROP TABLE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ] +DROP TABLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ] </synopsis> </refsynopsisdiv> @@ -49,6 +49,16 @@ DROP TABLE <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | <variablelist> <varlistentry> + <term><literal>IF EXISTS</literal></term> + <listitem> + <para> + Do not throw an error if the table does not exist. A notice is issued + in this case. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><replaceable class="PARAMETER">name</replaceable></term> <listitem> <para> @@ -97,7 +107,9 @@ DROP TABLE films, distributors; <para> This command conforms to the SQL standard, except that the standard only - allows one table to be dropped per command. + allows one table to be dropped per command, and apart from the + <literal>IF EXISTS</> option, which is a <productname>PostgreSQL</> + extension. </para> </refsect1> |
