2 $PostgreSQL: pgsql/doc/src/sgml/ref/drop_sequence.sgml,v 1.24 2005/11/19 17:39:44 adunstan Exp $
3 PostgreSQL documentation
6 <refentry id="SQL-DROPSEQUENCE">
8 <refentrytitle id="SQL-DROPSEQUENCE-TITLE">DROP SEQUENCE</refentrytitle>
9 <refmiscinfo>SQL - Language Statements</refmiscinfo>
13 <refname>DROP SEQUENCE</refname>
14 <refpurpose>remove a sequence</refpurpose>
17 <indexterm zone="sql-dropsequence">
18 <primary>DROP SEQUENCE</primary>
23 DROP SEQUENCE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
28 <title>Description</title>
31 <command>DROP SEQUENCE</command> removes sequence number generators.
36 <title>Parameters</title>
40 <term><literal>IF EXISTS</literal></term>
43 Do not throw an error if the sequence does not exist. A notice is issued
50 <term><replaceable class="PARAMETER">name</replaceable></term>
53 The name (optionally schema-qualified) of a sequence.
59 <term><literal>CASCADE</literal></term>
62 Automatically drop objects that depend on the sequence.
68 <term><literal>RESTRICT</literal></term>
71 Refuse to drop the sequence if any objects depend on it. This
80 <title>Examples</title>
83 To remove the sequence <literal>serial</literal>:
92 <title>Compatibility</title>
95 <command>DROP SEQUENCE</command> conforms to the <acronym>SQL</acronym>
96 standard, except that the standard only allows one
97 sequence to be dropped per command, and apart from the
98 <literal>IF EXISTS</> option, which is a <productname>PostgreSQL</>
104 <title>See Also</title>
106 <simplelist type="inline">
107 <member><xref linkend="sql-createsequence" endterm="sql-createsequence-title"></member>
113 <!-- Keep this comment at the end of the file
118 sgml-minimize-attributes:nil
119 sgml-always-quote-attributes:t
122 sgml-parent-document:nil
123 sgml-default-dtd-file:"../reference.ced"
124 sgml-exposed-tags:nil
125 sgml-local-catalogs:"/usr/lib/sgml/catalog"
126 sgml-local-ecat-files:nil