Difference between revisions of "LIST SCHEMAS"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{YLM to do}}
 
==Class==
 
Applications
 
 
 
 
==Purpose==
 
==Purpose==
 +
List the currently available databases
  
  
 
==Syntax==
 
==Syntax==
LIST SCHEMAS [TO FILE <.txt filename> | (<expC2>)] | [TO PRINT]
+
LIST SCHEMAS [TO FILE <.txt filename> | (<expC>)] | [TO PRINT]
  
  
 
==See Also==
 
==See Also==
[[DB_PRINT]], [[DISPLAY DATABASE]], [[DISPLAY STATUS]], [[DISPLAY STRUCTURE]], [[Function Keys]], [[LIST DATABASE]], [[SET PAGELENGTH]], [[SET PAGEWIDTH]], [[SET PRINTER]], [[SET PROCEDURE]]
+
[[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[BACKUP DATABASE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[COPY DATABASE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[SQL Database Events|DATABASE EVENTS]], [[DATABASE()]], [[DB_DATADIR]], [[DB_PRINT]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY SCHEMAS]], [[DISPLAY STATUS]], [[DISPLAY STRUCTURE]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[Function Keys]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST TABLES]], [[LOCK TABLE]], [[OPEN DATABASE]], [[PACK DATABASE]], [[REBUILD DATABASE]], [[REINDEX DATABASE]], [[RESTORE DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SET PAGELENGTH]], [[SET PAGEWIDTH]], [[SET PRINTER]], [[SQL USE|USE]]
  
  
 
==Description==
 
==Description==
The LIST SCHEMAS command displays on screen the  
+
The LIST SCHEMAS command lists the currently available databases.
  
 +
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 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.
  
  
Line 23: Line 20:
 
!Keyword||Description
 
!Keyword||Description
 
|-
 
|-
|TO <file>||The display output will be sent to the specified file.  The filename can be substituted with a <expC2>, 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 <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.
 
|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.
Line 32: Line 29:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
list schemas
+
set printer to \\spooler
 +
list schemas to print
 
</code>
 
</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Databases]]
 +
[[Category:Databases Commands]]

Latest revision as of 16:56, 15 December 2009

Purpose

List the currently available databases


Syntax

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


See Also

ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, BACKUP DATABASE, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, COPY DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DATABASE EVENTS, DATABASE(), DB_DATADIR, DB_PRINT, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY STATUS, DISPLAY STRUCTURE, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, Function Keys, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, LOCK TABLE, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, RESTORE DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, SET PAGELENGTH, SET PAGEWIDTH, SET PRINTER, USE


Description

The LIST SCHEMAS command lists the currently available databases.

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 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.


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

set printer to \\spooler
list schemas to print


Products

Recital Server, Recital