drop_sequence.sgml
来自「postgresql8.3.4源码,开源数据库」· SGML 代码 · 共 114 行
SGML
114 行
<!--$PostgreSQL: pgsql/doc/src/sgml/ref/drop_sequence.sgml,v 1.27 2007/05/15 19:13:55 neilc Exp $PostgreSQL documentation--><refentry id="SQL-DROPSEQUENCE"> <refmeta> <refentrytitle id="SQL-DROPSEQUENCE-TITLE">DROP SEQUENCE</refentrytitle> <refmiscinfo>SQL - Language Statements</refmiscinfo> </refmeta> <refnamediv> <refname>DROP SEQUENCE</refname> <refpurpose>remove a sequence</refpurpose> </refnamediv> <indexterm zone="sql-dropsequence"> <primary>DROP SEQUENCE</primary> </indexterm> <refsynopsisdiv><synopsis>DROP SEQUENCE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable> [, ...] [ CASCADE | RESTRICT ]</synopsis> </refsynopsisdiv> <refsect1> <title>Description</title> <para> <command>DROP SEQUENCE</command> removes sequence number generators. A sequence can only be dropped by its owner or a superuser. </para> </refsect1> <refsect1> <title>Parameters</title> <variablelist> <varlistentry> <term><literal>IF EXISTS</literal></term> <listitem> <para> Do not throw an error if the sequence does not exist. A notice is issued in this case. </para> </listitem> </varlistentry> <varlistentry> <term><replaceable class="PARAMETER">name</replaceable></term> <listitem> <para> The name (optionally schema-qualified) of a sequence. </para> </listitem> </varlistentry> <varlistentry> <term><literal>CASCADE</literal></term> <listitem> <para> Automatically drop objects that depend on the sequence. </para> </listitem> </varlistentry> <varlistentry> <term><literal>RESTRICT</literal></term> <listitem> <para> Refuse to drop the sequence if any objects depend on it. This is the default. </para> </listitem> </varlistentry> </variablelist> </refsect1> <refsect1> <title>Examples</title> <para> To remove the sequence <literal>serial</literal>:<programlisting>DROP SEQUENCE serial;</programlisting> </para> </refsect1> <refsect1> <title>Compatibility</title> <para> <command>DROP SEQUENCE</command> conforms to the <acronym>SQL</acronym> standard, except that the standard only allows one sequence to be dropped per command, and apart from the <literal>IF EXISTS</> option, which is a <productname>PostgreSQL</> extension. </para> </refsect1> <refsect1> <title>See Also</title> <simplelist type="inline"> <member><xref linkend="sql-createsequence" endterm="sql-createsequence-title"></member> <member><xref linkend="sql-altersequence" endterm="sql-altersequence-title"></member> </simplelist> </refsect1></refentry>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?