Difference between revisions of "LIST DATABASE"

From Lianjapedia
Jump to: navigation, search
(Description)
 
Line 17: Line 17:
 
* Database Name, e.g. southwind
 
* Database Name, e.g. southwind
 
* Database Path, e.g. C:\lianja\data\southwind\
 
* Database Path, e.g. C:\lianja\data\southwind\
 +
* Database MetaData
  
 
and for each table in the database the equivalent of LIST STRUCTURE INDEX followed by LIST DICTIONARY:
 
and for each table in the database the equivalent of LIST STRUCTURE INDEX followed by LIST DICTIONARY:
Line 30: Line 31:
 
* Index tag names, keys, types and lengths
 
* Index tag names, keys, types and lengths
 
* Dictionary information
 
* Dictionary information
 
+
* Table MetaData
  
 
{| class="wikitable" width="100%"
 
{| class="wikitable" width="100%"

Latest revision as of 03:40, 15 December 2017

Purpose

List information about the active database

Syntax

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

See Also

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

Description

The LIST DATABASE command is used to display information about the currently active database.

Databases are opened using the OPEN DATABASE command.

The LIST DATABASE command displays the following information:

  • Database Name, e.g. southwind
  • Database Path, e.g. C:\lianja\data\southwind\
  • Database MetaData

and for each table in the database the equivalent of LIST STRUCTURE INDEX followed by LIST DICTIONARY:

  • Table file name
  • Number of records
  • Date of creation
  • Date of last update
  • Encryption status
  • Field names, types, sizes and description
  • Total record length
  • Production DBX file name
  • Index tag names, keys, types and lengths
  • Dictionary information
  • Table MetaData
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.

Example

OPEN DATABASE southwind
LIST DATABASE