A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mariadb.com/docs/server/reference/sql-statements/data-definition/drop/drop-index below:

DROP INDEX | MariaDB Documentation

DROP INDEX | MariaDB Documentation
  1. Reference
  2. SQL Statements
  3. Data Definition (DDL)
  4. DROP
DROP INDEX
DROP INDEX [IF EXISTS] index_name ON tbl_name 
    [WAIT n |NOWAIT]

DROP INDEX drops the index named index_name from the table tbl_name. This statement is mapped to an ALTER TABLE statement to drop the index.

If another connection is using the table, a metadata lock is active, and this statement will wait until the lock is released. This is also true for non-transactional tables.

See ALTER TABLE.

Another shortcut, CREATE INDEX, allows the creation of an index.

To remove the primary key, PRIMARY must be specified as index_name. Note that the quotes are necessary, because PRIMARY is a keyword.

Executing the DROP INDEX statement requires the INDEX privilege for the table or the database.

Online DDL is used by default with InnoDB, when the drop index operation supports it.

See InnoDB Online DDL Overview for more information on online DDL with InnoDB.

If the IF EXISTS clause is used, then MariaDB will return a warning instead of an error if the index does not exist.

Sets the lock wait timeout. See WAIT and NOWAIT.

MariaDB provides progress reporting for DROP INDEX statement for clients that support the new progress reporting protocol. For example, if you were using the mariadb client, then the progress report might look like this::

This page is licensed: GPLv2, originally from fill_help_tables.sql


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4