Difference between revisions of "LIST TABLES"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision: SQL) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
List table information about the active database | List table information about the active database | ||
− | |||
==Syntax== | ==Syntax== | ||
LIST TABLES [TO FILE <.txt filename> | (<expC>)] | [TO PRINT] | LIST TABLES [TO FILE <.txt filename> | (<expC>)] | [TO PRINT] | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ADATABASES()]], [[ADD TABLE]], [[ALTER TABLE]], [[ALTER INDEX]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[COPY DATABASE]], [[CREATE DATABASE]], [[CREATE INDEX]], [[CREATE TABLE]], [[CREATE VIEW | + | [[ADATABASES()]], [[ADD TABLE]], [[ALTER TABLE]], [[ALTER INDEX]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[COPY DATABASE]], [[CREATE DATABASE]], [[CREATE INDEX]], [[CREATE TABLE]], [[CREATE VIEW]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY SCHEMAS]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[OPEN DATABASE]], [[REMOVE TABLE]], [[SET AUTOCATALOG]], [[SET DATADIR]], [[SET EXCLUSIVE]], [[SET PRINTER]], [[SET SQL]], [[USE]] |
==Description== | ==Description== | ||
The LIST TABLES command displays the base name and file name including the full path for each table in the currently active database. | The LIST TABLES command displays the base name and file name including the full path for each table in the currently active database. | ||
− | |||
− | |||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
!Keyword||Description | !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. | + | |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. |
|- | |- | ||
− | |TO PRINT||The display output will be sent to a printer | + | |TO PRINT||The display output will be sent to a printer. |
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 33: | Line 27: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 12:28, 9 February 2012
Contents
Purpose
List table information about the active database
Syntax
LIST TABLES [TO FILE <.txt filename> | (<expC>)] | [TO PRINT]
See Also
ADATABASES(), ADD TABLE, ALTER TABLE, ALTER INDEX, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, COPY DATABASE, CREATE DATABASE, CREATE INDEX, CREATE TABLE, CREATE VIEW, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST SCHEMAS, OPEN DATABASE, REMOVE TABLE, SET AUTOCATALOG, SET DATADIR, SET EXCLUSIVE, SET PRINTER, SET SQL, USE
Description
The LIST TABLES command displays the base name and file name including the full path for each table in the currently active database.
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. |
TO PRINT | The display output will be sent to a printer. |
Example
OPEN DATABASE southwind LIST TABLES