January 2002
Intermediate to advanced
640 pages
16h 39m
English
Removes an index from a database.
DROP INDEX index_name [, ...]index_nameThe name of the index you wish to remove from the database.
DROPThe message returned if the index is removed successfully.
ERROR: index "index_name" does not existThe error returned if the specified index cannot be found within the database.
The owner of an index may remove it from the database by using this command.
The following example drops an index called customer_id_idx from the
booktown database:
booktown=# DROP INDEX customer_id_idx;
DROPThe next example drops two indices simultaneously from the booktown
database:
booktown=# DROP INDEX books_id_pkey, books_title_idx;
DROP