Previous Page TOC Index Next Page

APPENDIX E SYSTEM VIEWS AND SYSTEM TABLES


System Views

SOLID Server supports views specified in the X/Open SQL Standard.

COLUMNS

The COLUMNS system view identifies the columns which are accessible to the current user.

Column name

Data type

Description

TABLE_CATALOG

VARCHAR

reserved for future use

TABLE_SCHEMA

VARCHAR

the name of the schema containing TABLE_NAME

TABLE_NAME

VARCHAR

the name of the table or view

COLUMN_NAME

VARCHAR

the name of the column of the specified table or view

DATA_TYPE

VARCHAR

the data type of the column

SQL_DATA_TYPE_NUM

SMALLINT

ODBC compliant data type number

CHAR_MAX_LENGTH

INTEGER

maximum length for a character data type column; for others NULL

NUMERIC_PRECISION

INTEGER

the number of digits of mantissa precision of the column, if DATA_TYPE is approximate numeric data type, NUMERIC_PREC_RADIX indicates the units of measurement; for other numeric types contains the total number of decimal digits allowed in the column; for character data types NULL

NUMERIC_PREC_RADIX

SMALLINT

the radix of numeric precision if DATA_TYPE is one of the approximate numeric data types; otherwise NULL

NUMERIC_SCALE

SMALLINT

total number of significant digits to the right of the decimal point; for INTEGER and SMALLINT 0; for others NULL

NULLABLE

CHAR

if column is known to be not nullable 'NO'; otherwise 'YES'

NULLABLE_ODBC

SMALLINT

ODBC, if column is known to be not nullable '0'; otherwise '1'

REMARKS

LONG VARCHAR

reserved for future use

SERVER_INFO

The SERVER_INFO system view provides attributes of the current database system or server.

Column name

Data type

Description

SERVER_ATTRIBUTE

VARCHAR

identifies an attribute of the server

ATTRIBUTE_VALUE

VARCHAR

the value of the attribute

TABLES

The TABLES system view identifies the tables accessible to the current user.

Column name

Data type

Description

TABLE_CATALOG

VARCHAR

reserved for future use

TABLE_SCHEMA

VARCHAR

the name of the schema containing TABLE_NAME

TABLE_NAME

VARCHAR

the name of the table or view

TABLE_TYPE

VARCHAR

the type of the table

REMARKS

LONG VARCHAR

reserved for future use

System Tables

SQL_LANGUAGES

The SQL_LANGUAGES system table lists the SQL standards and SQL dialects which supported.

Column name

Data type

Description

SOURCE

VARCHAR

the organization that defined this specific SQL version

SOURCE_YEAR

VARCHAR

the year the relevant standard was approved

CONFORMANCE

VARCHAR

the conformance level at which conformance to the relevant standard

INTEGRITY

VARCHAR

indicates whether the Integrity Enhancement Feature is supported

IMPLEMENTATION

VARCHAR

identifies uniquely the vendor's SQL language; NULL if SOURCE is 'ISO'

BINDING_STYLE

VARCHAR

the binding style 'DIRECT', *EMBED' or 'MODULE'

PROGRAMMING_LANG

VARCHAR

the host language used

SYS_ATTAUTH

Column name

Data type

Description

REL_ID

INTEGER

table id

UR_ID

INTEGER

user or role id

ATTR_ID

INTEGER

column id

PRIV

INTEGER

privilege info

GRANT_ID

INTEGER

grantor id

GRANT_TIM

TIMESTAMP

grant time

SYS_CARDINAL

Column name

Data type

Description

REL_ID

INTEGER

the relation id as in SYS_TABLES

CARDIN

INTEGER

the number of rows in the table

SIZE

INTEGER

the size of the data in the table

LAST_UPD

TIMESTAMP

the timestamp of the last update in the table

SYS_COLUMNS

Column name

Data type

Description

ID

INTEGER

unique column identifier

REL_ID

INTEGER

the relation id as in SYS_TABLES

COLUMN_NAME

VARCHAR

the name of the column

COLUMN_NUMBER

INTEGER

the number of the column in the table (in creation order)

DATA_TYPE

VARCHAR

the data type of the column

SQL_DATA_TYPE_NUM

SMALLINT

ODBC compliant data type number

DATA_TYPE_NUMBER

INTEGER

internal data type number

CHAR_MAX_LENGTH

INTEGER

maximum length for a CHAR field

NUMERIC_PRECISION

INTEGER

numeric precision

NUMERIC_PREC_RADIX

SMALLINT

numeric precision radix

NUMERIC_SCALE

SMALLINT

numeric scale

NULLABLE

CHAR

are NULL values allowed (Yes, No)

NULLABLE_ODBC

SMALLINT

ODBC, are NULL values allowed (1,0)

FORMAT

VARCHAR

reserved for future use

DEFAULT_VAL

VARBINARY

reserved for future use

ATTR_TYPE

INTEGER

user defined (0) or internal (>0)

REMARKS

LONG VARCHAR

reserved for future use

SYS_EVENTS

Column name

Data type

Description

ID

INTEGER

unique event identifier

EVENT_NAME

VARCHAR

the name of the event

EVENT_PARAMCOUNT

INTEGER

number of parameters

EVENT_PARAMTYPES

LONG VARBINARY

types of parameters

EVENT_TEXT

VARCHAR

the body of the event

EVENT_SCHEMA

VARCHAR

the owner of the event

CREATIME

TIMESTAMP

creation time

TYPE

INTEGER

reserved for future use

SYS_FORKEYPARTS

Column name

Data type

Description

ID

INTEGER

foreign key identifier

KEYP_NO

INTEGER

keypart number

ATTR_NO

INTEGER

column number

ATTR_ID

INTEGER

column identifier

ATTR_TYPE

INTEGER

column type

CONST_VALUE

VARBINARY

possible internal constant value; otherwise NULL

SYS_FORKEYS

Column name

Data type

Description

ID

INTEGER

foreign key identifier

REF_REL_ID

INTEGER

referenced table identifier

CREATE_REL_ID

INTEGER

creator table identifier

REF_KEY_ID

INTEGER

referenced key identifier

REF_TYPE

INTEGER

reference type

KEY_SCHEMA

VARCHAR

creator name

KEY_NREF

INTEGER

number of referenced key parts

SYS_INFO

Column name

Data type

Description

PROPERTY

VARCHAR

the name of the property

VALUE_STR

VARCHAR

value as a string

VALUE_INT

INTEGER

value as an integer

SYS_KEYPARTS

Column name

Data type

Description

ID

INTEGER

unique key identifier

REL_ID

INTEGER

the relation id as in SYS_TABLES

KEYP_NO

INTEGER

keypart identifier

ATTR_ID

INTEGER

column identifier

ATTR_NO

INTEGER

the number of the column in the table (in creation order)

ATTR_TYPE

INTEGER

the type of the column

CONST_VALUE

VARBINARY

constant value or NULL

ASCENDING

CHAR

is the key ascending (Yes) or descending (No)

SYS_KEYS

Column name

Data type

Description

ID

INTEGER

unique key identifier

REL_ID

INTEGER

the relation id as in SYS_TABLES

KEY_NAME

VARCHAR

the name of the key

KEY_UNIQUE

CHAR

is the key unique (Yes, No)

KEY_NONUNIQUE_ODBC

SMALLINT

ODBC, is the key NOT unique (1, 0)

KEY_CLUSTERING

CHAR

is the key a clustering key (Yes, No)

KEY_PRIMARY

CHAR

is the key a primary key (Yes, No)

KEY_PREJOINED

CHAR

reserved for future use

KEY_SCHEMA

VARCHAR

the owner of the key

KEY_NREF

INTEGER

internal system specific information

SYS_PROCEDURES

Column name

Data type

Description

ID

INTEGER

unique procedure identifier

PROCEDURE_NAME

VARCHAR

procedure name

PROCEDURE_TEXT

LONG VARCHAR

procedure body

PROCEDURE_BIN

LONG VARBINARY

compiled form of the procedure

PROCEDURE_SCHEMA

VARCHAR

the owner

CREATIME

TIMESTAMP

creation time

TYPE

INTEGER

reserved for future use

SYS_RELAUTH

Column name

Data type

Description

REL_ID

INTEGER

relation id

UR_ID

INTEGER

user or role id

PRIV

INTEGER

privilege info

GRANT_ID

INTEGER

grantor id

GRANT_TIM

TIMESTAMP

grant time

GRANT_OPT

CHAR

grant option info

SYS_SEQUENCES

Column name

Data type

Description

SEQUENCE_NAME

VARCHAR

sequence name

ID

INTEGER

unique id

DENSE

CHAR

is the sequence dense or sparse

SEQUENCE_SCHEMA

VARCHAR

the schema name

CREATIME

TIMESTAMP

creation time

SYS_SYNONYM

Column name

Data type

Description

TARGET_ID

INTEGER

reserved for future use

SYNON

INTEGER

reserved for future use

SYS_TABLEMODES

Column name

Data type

Description

ID

INTEGER

relation id

MODE

VARCHAR

special mode info

MODIFY_TIME

TIMESTAMP

last modify time

MODIFY_USER

VARCHAR

last user that modified

SYS_TABLES

Column name

Data type

Description

ID

INTEGER

unique table identifier

TABLE_NAME

VARCHAR

the name of the table

TABLE_TYPE

VARCHAR

the type of the table (BASE TABLE or VIEW)

TABLE_SCHEMA

VARCHAR

the owner of the table

TABLE_CATALOG

VARCHAR

reserved for future use

CREATIME

TIMESTAMP

the creation time of the table

CHECKSTRING

LONG VARCHAR

possible check option defined for the table

REMARKS

LONG VARCHAR

reserved for future use

SYS_TMP_HOTSTANDBY

This table is for system’s internal use only.

SYS_TYPES

Column name

Data type

Description

TYPE_NAME

VARCHAR

the name of the data type

DATA_TYPE

SMALLINT

ODBC, data type number

PRECISION

INTEGER

ODBC, the precision of the data type

LITERAL_PREFIX

VARCHAR

ODBC, possible prefix for literal values

LITERAL_SUFFIX

VARCHAR

ODBC, possible suffix for literal values

CREATE_PARAMS

VARCHAR

ODBC, the parameters needed to create a column of the data type

NULLABLE

SMALLINT

ODBC, can the data type contain NULL values

CASE_SENSITIVE

SMALLINT

ODBC, is the data type case sensitive

SEARCHABLE

SMALLINT

ODBC, the supported search operations

UNSIGNED_ATTRIBUTE

SMALLINT

ODBC, is the data type unsigned

MONEY

SMALLINT

ODBC, whether the data is a money data type

AUTO_INCREMENT

SMALLINT

ODBC, whether the data type is autoincrementing

LOCAL_TYPE_NAME

VARCHAR

ODBC, has the data type another implementation defined name

MINIMUM_SCALE

SMALLINT

ODBC, the minimum scale of the data type

MAXIMUM_SCALE

SMALLINT

ODBC, the maximum scale of the data type

SYS_UROLE, SYS_USERS

These tables are for the system’s internal use only.

SYS_VIEWS

Column name

Data type

Description

V_ID

INTEGER

unique identifier for this view

TEXT

LONG VARCHAR

view definition

CHECKSTRING

LONG VARCHAR

possible CHECK OPTION defined for the view

REMARKS

LONG VARCHAR

reserved for future use

Previous Page TOC Index Next Page

Copyright © 1992-1997 Solid Information Technology Ltd All rights reserved.