DROP

DROP

The DROP syntax is as follows:

DROP DATABASE [IF EXISTS] database_name DROP TABLE [IF EXISTS] table_name [, table_name,...] [RESTRICT  | CASCADE] DROP INDEX index_name ON table_name

DROP DATABASE removes the database and all its tables.

DROP TABLE removes the specified table.

DROP INDEX removes the specified index.

MySQL returns an error if the database doesn't exist, unless the IF EXISTS clause is used.

DROP TABLE automatically commits active transactions.

RESTRICT and CASCADE are not currently implemented.



Mastering MySQL 4
Mastering MySQL 4
ISBN: 0782141625
EAN: 2147483647
Year: 2003
Pages: 230
Authors: Ian Gilfillan

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net