REMOVE TABLE

From Recital Documentation Wiki
Revision as of 09:19, 26 August 2011 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Remove the specified table from the currently active database


Syntax

REMOVE TABLE <table>


See Also

ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, BACKUP DATABASE, BUILD, CLOSE TABLES, COMPILE DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DATABASE(), DB_DATADIR, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), INSTALL, LIST DATABASE, LIST INDEXES, LIST TABLES, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, RESTORE DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE


Description

The REMOVE TABLE command is used to remove a table from the currently active database.


Keywords Description
table This is the name of the table to be removed from the database.


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 also be added to the database using the ADD TABLE command or via the database catalog and SET AUTOCATALOG functionality.


Example

CREATE TABLE freetable (freeid char(10))
open database southwind
ADD TABLE freetable
list files
REMOVE TABLE freetable


Products

Recital Server, Recital