|
DROP TABLENameDROP TABLE — Removes existing tables from a databaseDROP TABLE name [, ...] Inputs
Outputs
DescriptionDROP TABLE removes tables and views from the database. Only its owner may destroy a table or view. A table may be emptied of rows, but not destroyed, by using DELETE. If a table being destroyed has secondary indexes on it, they will be removed first. The removal of just a secondary index will not affect the contents of the underlying table. NotesRefer to CREATE TABLE and ALTER TABLE for information on how to create or modify tables. UsageTo destroy two tables, films and distributors: DROP TABLE films, distributors; CompatibilitySQL92SQL92 specifies some additional capabilities for DROP TABLE: DROP TABLE table { RESTRICT | CASCADE }
|
|||||||||||||||||
With any suggestions or questions please feel free to contact us |