The systables system catalog table contains a row for each table object (a table, view, synonym, or in Dynamic Server, a sequence) that has been defined in the database, including the tables and views of the system catalog.
Each table, view, sequence, and synonym recorded in the systables table is assigned a tabid, which is a system-assigned SERIAL value that uniquely identifies the object. The first 99 tabid values are reserved for the system catalog. The tabid of the first user-defined table object in a database is always 100.
The tabid column is indexed and contains only unique values. A composite index on the tabname and owner columns also requires unique values.
The version column contains an encoded number that is stored in systables when a new table is created. Portions of this value are incremented when data-definition statements, such as ALTER INDEX, ALTER TABLE, DROP INDEX, and CREATE INDEX, are performed on the table.
In the flags column, ST_RAW represents a nonlogging permanent table in a database that supports transaction logging.
When a prepared statement that references a database table is executed, the version value is checked to make sure that nothing has changed since the statement was prepared. If the version value has changed, the prepared statement is not executed, and you must prepare the statement again.
The npused column does not reflect the number of pages used for BYTE or TEXT data, nor the number of pages that are freed in DELETE operations.
The systables table has two rows that store information about the database locale: GL_COLLATE with a tabid of 90 and GL_CTYPE with a tabid of 91. To view these rows, enter the following SELECT statement:
SELECT * FROM systables WHERE tabid=90 OR tabid=91Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]