Difference between revisions of "DISPLAY TABLES"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 17: Line 17:
  
 
==See Also==
 
==See Also==
[[ALTER TABLE]], [[ALTER INDEX]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[CREATE DATABASE]], [[CREATE INDEX]], [[CREATE TABLE]], [[CREATE VIEW]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST TABLES]], [[OPEN DATABASE]], [[USE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]] , [[SET PAGELENGTH]], [[SET PAGEWIDTH]], [[SET PRINTER]], [[SET SQL]], [[ADATABASES()]], [[DBUSED()]], [[GETENV()]], [[DB_DATADIR]]
+
[[ADATABASES()]], [[ALTER TABLE]], [[ALTER INDEX]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[CREATE DATABASE]], [[CREATE INDEX]], [[CREATE TABLE]], [[CREATE VIEW]], [[DB_DATADIR]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST TABLES]], [[OPEN DATABASE]], [[USE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]] , [[SET PAGELENGTH]], [[SET PAGEWIDTH]], [[SET PRINTER]], [[SET SQL]]
  
 
==Description==
 
==Description==

Revision as of 16:24, 19 March 2009

DISPLAY TABLES

Class

Databases


Purpose

Display table information about the active database


Syntax

DISPLAY TABLES

[TO FILE <.txt filename> | (<expC>)] | [TO PRINT]


See Also

ADATABASES(), ALTER TABLE, ALTER INDEX, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, CREATE DATABASE, CREATE INDEX, CREATE TABLE, CREATE VIEW, DB_DATADIR, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, OPEN DATABASE, USE, SET AUTOCATALOG, SET EXCLUSIVE , SET PAGELENGTH, SET PAGEWIDTH, SET PRINTER, SET SQL

Description

The DISPLAY TABLES command displays the base name and file name including the full path for each table in the currently active 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 be added to the database using the ADD TABLE command or via the database catalog and SET AUTOCATALOG functionality. Databases are opened using the OPEN DATABASE command.

DISPLAY commands differ from LIST commands in that they pause every 17 lines until a key is pressed. You can cancel any further output at this point by pressing the [ABANDON] key. Where the output is sent to a file or printer, the pause is disabled.


Keyword Description
TO <file> The display output will be sent to the specified file. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, then ".txt" will be used. The command SET PAGELENGTH governs the output file pagination and SET PAGEWIDTH defines the width of each page. Page numbers are centered on the bottom of the page according to width.
TO PRINT The display output will be sent to a printer. The TO PRINT option will default to a local printer unless the command SET PRINTER TO \\SPOOLER is issued. The print request will then be spooled to the system printer, which is defined by the environment variable DB_PRINT.


Example

VFP/SQL > OPEN DATABASE southwind
VFP/SQL > DISPLAY TABLES


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer