Difference between revisions of "DISPLAY TABLES"

From Lianjapedia
Jump to: navigation, search
(See Also)
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
==Syntax==
 
==Syntax==
DISPLAY TABLES [TO FILE <.txt filename> | (<expC>)] | [TO PRINT]
+
DISPLAY TABLES [TO FILE <.txt filename> | (<expC>)]
  
 
==See Also==
 
==See Also==
[[ADATABASES()]], [[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]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[LIST TABLES]], [[OPEN DATABASE]], [[PACK DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SET PRINTER]], [[SET SQL]], [[USE]]
+
[[ADATABASES()]], [[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]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[LIST TABLES]], [[OPEN DATABASE]], [[PACK DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SET SQL]], [[USE]]
  
 
==Description==
 
==Description==
 
The DISPLAY TABLES command displays the base name and file name including the full path for each table in the currently active database.
 
The DISPLAY TABLES command displays the base name and file name including the full path for each table in the currently active database.
  
{| class="wikitable"
+
===TO <file>===
!Keyword||Description
+
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. 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.
+
|-
+
|}
+
  
 
==Example==
 
==Example==
Line 30: Line 24:
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:Databases]]
 
[[Category:Databases]]
[[Category:Databases Commands]]
 

Latest revision as of 10:48, 4 February 2013

Purpose

Display table information about the active database

Syntax

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

See Also

ADATABASES(), 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, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST SCHEMAS, LIST TABLES, OPEN DATABASE, PACK DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, SET SQL, USE

Description

The DISPLAY TABLES command displays the base name and file name including the full path for each table in the currently active database.

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
DISPLAY TABLES