DROP INDEX 中文man頁(yè)面
NAME
DROP INDEX - 刪除一個(gè)索引
SYNOPSIS
DROP INDEX name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION 描述
DROP INDEX 從數(shù)據(jù)庫(kù)中刪除一個(gè)現(xiàn)存的索引。 要執(zhí)行這個(gè)命令,你必須是索引的所有者。
PARAMETERS 參數(shù)
- name
要?jiǎng)h除的索引名(可以有模式修飾)。- CASCADE
自動(dòng)刪除依賴于該索引的對(duì)象。- RESTRICT
如果有依賴對(duì)象存在,則拒絕刪除該索引。這個(gè)是缺省。
EXAMPLES 例子
此命令將刪除title_idx 索引:
DROP INDEX title_idx;
COMPATIBILITY 兼容性
DROP INDEX 是 PostgreSQL 語(yǔ)言擴(kuò)展。 在 SQL 標(biāo)準(zhǔn)里沒(méi)有索引的規(guī)定。
SEE ALSO 參見
CREATE INDEX [create_index(7)]
#p#
NAME
DROP INDEX - remove an index
SYNOPSIS
DROP INDEX name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION
DROP INDEX drops an existing index from the database system. To execute this command you must be the owner of the index.
PARAMETERS
- name
- The name (optionally schema-qualified) of an index to remove.
- CASCADE
- Automatically drop objects that depend on the index.
- RESTRICT
- Refuse to drop the index if any objects depend on it. This is the default.
EXAMPLES
This command will remove the index title_idx:
DROP INDEX title_idx;
COMPATIBILITY
DROP INDEX is a PostgreSQL language extension. There are no provisions for indexes in the SQL standard.
SEE ALSO
CREATE INDEX [create_index(7)]