DROP DATABASE

From Lianjapedia
Jump to: navigation, search

Purpose

Removes the specified database and all its tables

Syntax

DROP DATABASE [IF EXISTS] <database name>

See Also

ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, COPY DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DATABASE(), DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY TABLES, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST SCHEMAS, LIST TABLES, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE

Description

The DROP DATABASE command removes the specified database and all its tables. The number of files deleted from the database is returned. An error occurs if the database does not exist unless the IF EXISTS clause is specified.

Example

DROP DATABASE temp