NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
T-2
TABLES Table
TABLES Table
The TABLES table is a catalog table that contains information about tables, views, and
collations. It contains a row for each table, view, and collation in the catalog, including
itself and other catalog tables.
The following table describes the contents of the TABLES table.
The columns TABLENAME through SECURITYVECTOR (1 through 9) were created
in version 1. The columns SECURITYMODE through OBJECTVERSION (10 through
11) were added in version 300. Column SIMILARITYCHECK (12) was added at
version 310.
Guardian names in the TABLES table are fully qualified and use uppercase characters.
Column Name Data Type Description
1 TABLENAME* CHAR(34) Name of table, view, or collation
2 TABLETYPE CHAR(2) TA if table
VI if view
CP if collation
3 TABLECODE SMALLINT
UNSIGNED
Code for type of table; codes 100-999
mean reserved for Tandem use; other
numbers are values of TABLECODE
file attribute
4 COLCOUNT SMALLINT
SIGNED
Number of columns in table or view
5 GROUPID SMALLINT
UNSIGNED
Group number of owner's user ID
6 USERID SMALLINT
UNSIGNED
User number of owner's user ID
7 CREATETIME LARGEINT
SIGNED
Julian timestamp from table creation
8 REDEFTIME LARGEINT
SIGNED
Julian timestamp from alteration that
invalidated dependent programs
(updated by UPDATE STATISTICS)
9 SECURITYVECTOR CHAR(4) Security string for table, view, or
collation
10 SECURITYMODE CHAR(1) S if Safeguard security
G if Guardian security
11 OBJECTVERSION SMALLINT
UNSIGNED
Version of table, view, or collation
12 SIMILARITYCHECK VARCHAR(30) ENABLED if similarity check is
allowed
DISABLED if no
t
* Indicates primary key