📄 drop_index.sgml
字号:
<refentry id="SQL-DROPINDEX"> <refmeta> <refentrytitle> DROP INDEX </refentrytitle> <refmiscinfo>SQL - Language Statements</refmiscinfo> </refmeta> <refnamediv> <refname> DROP INDEX </refname> <refpurpose> Removes an index from a database </refpurpose> </refnamediv> <refsynopsisdiv> <refsynopsisdivinfo> <date>1998-04-15</date> </refsynopsisdivinfo> <synopsis>DROP INDEX <replaceable class="PARAMETER">index_name</replaceable> </synopsis> <refsect2 id="R2-SQL-DROPINDEX-1"> <refsect2info> <date>1998-04-15</date> </refsect2info> <title> Inputs </title> <para> <variablelist> <varlistentry> <term><replaceable class="PARAMETER">index_name</replaceable></term> <listitem> <para> The name of the index to remove. </para> </listitem> </varlistentry> </variablelist> </para> </refsect2> <refsect2 id="R2-SQL-DROPINDEX-2"> <refsect2info> <date>1998-04-15</date> </refsect2info> <title> Outputs </title> <para> <variablelist> <varlistentry> <term><computeroutput>DROP </computeroutput></term> <listitem> <para> The message returned if the index is successfully dropped. </para> </listitem> </varlistentry> <varlistentry> <term><computeroutput>ERROR: index "<replaceable class="PARAMETER">index_name</replaceable>" nonexistent </computeroutput></term> <listitem> <para> This message occurs if <replaceable class="PARAMETER">index_name</replaceable> is not an index in the database. </para> </listitem> </varlistentry> </variablelist> </para> </refsect2> </refsynopsisdiv> <refsect1 id="R1-SQL-DROPINDEX-1"> <refsect1info> <date>1998-04-15</date> </refsect1info> <title> Description </title> <para> <command>DROP INDEX</command> drops an existing index from the database system. To execute this command you must be the owner of the index. </para> <refsect2 id="R2-SQL-DROPINDEX-3"> <refsect2info> <date>1998-04-15</date> </refsect2info> <title> Notes </title> <para> <command>DROP INDEX</command> is a <productname>Postgres</productname> language extension. </para> <para> Refer to the <command>CREATE INDEX</command> statement for information on how to create indexes. </para> </refsect2> </refsect1> <refsect1 id="R1-SQL-DROPINDEX-2"> <title> Usage </title> <para> This command will remove the <literal>title_idx</literal> index: <programlisting> DROP INDEX title_idx; </programlisting> </para> </refsect1> <refsect1 id="R1-SQL-DROPINDEX-3"> <title> Compatibility </title> <para> </para> <refsect2 id="R2-SQL-DROPINDEX-4"> <refsect2info> <date>1998-04-15</date> </refsect2info> <title> SQL92 </title> <para> <acronym>SQL92</acronym> defines commands by which to access a generic relational database. Indexes are an implementation-dependent feature and hence there are no index-specific commands or definitions in the <acronym>SQL92</acronym> language. </para> </refsect2> </refsect1></refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:nilsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tsgml-parent-document:nilsgml-default-dtd-file:"../reference.ced"sgml-exposed-tags:nilsgml-local-catalogs:"/usr/lib/sgml/catalog"sgml-local-ecat-files:nilEnd:-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -