DROP DATABASE

From Recital Documentation Wiki
Revision as of 14:17, 19 March 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

DROP DATABASE

Class

Databases


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, BACKUP DATABASE, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DATABASE(), DB_DATADIR, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY TABLES, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, RESTORE DATABASE, 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.

Databases in Recital are implemented as directories containing files that correspond to the tables and associated files in the database. Operating System file protection can be applied individually to the files for added security. The directories are sub-directories of the Recital data directory. The environment variable / symbol DB_DATADIR points to the current Recital data directory and can be queried using the GETENV() function. Files from other directories can be added to the database using the ADD TABLE command or via the database catalog and SET AUTOCATALOG functionality.


Example

DROP DATABASE temp;


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer