Difference between revisions of "SYSTABLES"

From Lianjapedia
Jump to: navigation, search
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Description of the tables available in the catalog
+
Description of tables
  
 
==See Also==
 
==See Also==
Line 22: Line 22:
 
|-
 
|-
 
|}
 
|}
 +
 +
Note: from Lianja v5.3, systables returns table information from all catalogs/databases whether a database is open or not.  Previously, with a database open, it returned table information from that database only.
  
 
==Example==
 
==Example==
Line 29: Line 31:
 
</code>
 
</code>
  
==Products==
+
 
Lianja, Lianja Server
+
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:System Tables]]
 
[[Category:System Tables]]

Latest revision as of 09:29, 23 April 2020

Purpose

Description of tables

See Also

DATA TYPES, SELECT, SYSTEM TABLES

Description

System Tables are system defined read-only tables. You can query these tables using the SELECT statement.

Column Data Type Width Description
TABLE_CAT C 30 Table catalog
TABLE_SCHEM C 30 Table schema
TABLE_NAME C 30 Table name
TABLE_TYPE C 15 Table type
REMARKS C 100 Comment describing table

Note: from Lianja v5.3, systables returns table information from all catalogs/databases whether a database is open or not. Previously, with a database open, it returned table information from that database only.

Example

SELECT * FROM systables;
WHERE table_type = 'TABLE'