Difference between revisions of "ADD TABLE"

From Lianjapedia
Jump to: navigation, search
 
(See Also)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Add the specified table to the currently active database
 
Add the specified table to the currently active database
 
  
 
==Syntax==
 
==Syntax==
 
ADD TABLE <table>
 
ADD TABLE <table>
 
  
 
==See Also==
 
==See Also==
[[ADATABASES()]], [[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]], [[REMOVE TABLE]], [[RESTORE DATABASE]], [[SET AUTOCATALOG]], [[SET DATADIR]], [[SET EXCLUSIVE]], [[SQL USE|USE]]  
+
[[ADATABASES()]], [[ALTER INDEX]], [[ALTER TABLE]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[COPY TABLE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[DATABASE()]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST TABLES]], [[OPEN DATABASE]], [[PACK DATABASE]], [[REBUILD DATABASE]], [[REINDEX DATABASE]], [[REMOVE TABLE]], [[RENAME]], [[RENAME Commands]], [[SET AUTOCATALOG]], [[SET DATADIR]], [[SET EXCLUSIVE]], [[SQL USE|USE]]
 
+
  
 
==Description==
 
==Description==
 
The ADD TABLE command is used to add an existing table to the currently active database.  If no database is currently active an error will be generated.
 
The ADD TABLE command is used to add an existing table to the currently active database.  If no database is currently active an error will be generated.
  
 
+
{| class="wikitable" width="100%"
 
+
{| class="wikitable"
+
 
!Keywords||Description
 
!Keywords||Description
 
|-
 
|-
Line 23: Line 18:
 
|}
 
|}
  
 
+
Note: [http://www.lianja.com/community/showthread.php?3389-Adding-a-table-to-a-Database&p=15523&viewfull=1#post15523 See here for more information on adding a table to a 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==
 
==Example==
Line 34: Line 27:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Databases]]
 
[[Category:Databases]]
[[Category:Databases Commands]]
 

Latest revision as of 12:27, 20 November 2023

Purpose

Add the specified table to the currently active database

Syntax

ADD TABLE <table>

See Also

ADATABASES(), ALTER INDEX, ALTER TABLE, CLOSE TABLES, COMPILE DATABASE, COPY TABLE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, DATABASE(), DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, REMOVE TABLE, RENAME, RENAME Commands, SET AUTOCATALOG, SET DATADIR, SET EXCLUSIVE, USE

Description

The ADD TABLE command is used to add an existing table to the currently active database. If no database is currently active an error will be generated.

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

Note: See here for more information on adding a table to a database.

Example

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