Difference between revisions of "SYSTABLES"

From Lianjapedia
Jump to: navigation, search
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Description of the tables available in the catalog
+
Description of tables
 
+
  
 
==See Also==
 
==See Also==
 
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]]
 
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]]
 
  
 
==Description==
 
==Description==
 
System Tables are system defined read-only tables. You can query these tables using the SELECT statement.
 
System Tables are system defined read-only tables. You can query these tables using the SELECT statement.
  
 
+
{| class="wikitable" width="100%"
{| class="wikitable"
+
 
!Column||Data Type||Width||Description
 
!Column||Data Type||Width||Description
 
|-
 
|-
Line 26: Line 23:
 
|}
 
|}
  
 +
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 34: Line 32:
  
  
==Products==
 
Recital, Recital 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'