2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_view.sgml,v 1.14 2002/05/18 15:44:47 petere Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-DROPVIEW">
8 <refentrytitle id="SQL-DROPVIEW-TITLE">DROP VIEW</refentrytitle>
9 <refmiscinfo>SQL - Language Statements</refmiscinfo>
21 <date>1999-07-20</date>
24 DROP VIEW <replaceable class="PARAMETER">name</replaceable> [, ...]
27 <refsect2 id="R2-SQL-DROPVIEW-1">
29 <date>1998-09-22</date>
38 <term><replaceable class="PARAMETER">name</replaceable></term>
41 The name (optionally schema-qualified) of an existing view.
49 <refsect2 id="R2-SQL-DROPVIEW-2">
51 <date>1998-09-22</date>
60 <term><computeroutput>
62 </computeroutput></term>
65 The message returned if the command is successful.
70 <term><computeroutput>
71 ERROR: view <replaceable class="parameter">name</replaceable> does not exist
72 </computeroutput></term>
75 This message occurs if the specified view does not exist in
85 <refsect1 id="R1-SQL-DROPVIEW-1">
87 <date>1998-09-22</date>
93 <command>DROP VIEW</command> drops an existing view from the database.
94 To execute this command you must be the owner of the
98 <refsect2 id="R2-SQL-DROPVIEW-3">
100 <date>1998-09-22</date>
106 Refer to <xref linkend="sql-createview">
107 for information on how to create views.
112 <refsect1 id="R1-SQL-DROPVIEW-2">
117 This command will remove the view called <literal>kinds</literal>:
124 <refsect1 id="R1-SQL-DROPVIEW-3">
129 <refsect2 id="R2-SQL-DROPVIEW-4">
131 <date>1998-09-22</date>
137 <acronym>SQL92</acronym> specifies some additional capabilities for
138 <command>DROP VIEW</command>:
141 DROP VIEW <replaceable class="parameter">view</replaceable> { RESTRICT | CASCADE }
145 <refsect3 id="R3-SQL-DROPVIEW-1">
147 <date>1998-09-22</date>
155 <term>RESTRICT</term>
158 Ensures that only a view with no dependent views or
159 integrity constraints can be destroyed.
167 Any referencing views and integrity constraints
168 will be dropped as well.
176 <refsect3 id="R3-SQL-DROPVIEW-2">
178 <date>1998-09-22</date>
184 At present, to remove a referencing view from a
185 <productname>PostgreSQL</productname> database,
186 you must drop it explicitly.
193 <!-- Keep this comment at the end of the file
198 sgml-minimize-attributes:nil
199 sgml-always-quote-attributes:t
202 sgml-parent-document:nil
203 sgml-default-dtd-file:"../reference.ced"
204 sgml-exposed-tags:nil
205 sgml-local-catalogs:"/usr/lib/sgml/catalog"
206 sgml-local-ecat-files:nil