DROP INDEX 中文man頁面
NAME
DROP INDEX - 刪除一個索引
SYNOPSIS
DROP INDEX name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION 描述
DROP INDEX 從數據庫中刪除一個現存的索引。 要執行這個命令,你必須是索引的所有者。
PARAMETERS 參數
- name
要刪除的索引名(可以有模式修飾)。- CASCADE
自動刪除依賴于該索引的對象。- RESTRICT
如果有依賴對象存在,則拒絕刪除該索引。這個是缺省。
EXAMPLES 例子
此命令將刪除title_idx 索引:
DROP INDEX title_idx;
COMPATIBILITY 兼容性
DROP INDEX 是 PostgreSQL 語言擴展。 在 SQL 標準里沒有索引的規定。
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)]