Entering content frame

COLUMNS 

The system table COLUMNS contains the columns of all the tables, view tables, result tables, and synonyms  for which the current user has privileges.

COLUMNS

OWNER

CHAR(32)

Name of owner of database object

TABLENAME

CHAR(32)

Name of database object

COLUMNNAME

CHAR(32)

Name of column

MODE

CHAR(3)

Type of column (KEY | MAN | OPT)

DATATYPE

CHAR(10)

Data type of column (BOOLEAN | CHAR | DATE | FIXED | FLOAT | INTEGER | LONG | SMALLINT | TIME | TIMESTAMP)

CODETYPE

CHAR(8)

Code attribute of column (ASCII | EBCDIC | BYTE | UNICODE)

LEN

FIXED(4)

Length or precision of column

DEC

FIXED(3)

Number of places after the comma for columns of data type FIXED

NULLABLE

CHAR(3)

Column can accept null values (YES | NO)

COLUMNPRIVILEGES

CHAR(8)

Privileges of current user for column

DEFAULT

CHAR(254)

Default value (DEFAULT) for column

DEFAULTFUNCTION

CHAR(12)

Name, if the DEFAULT value is one of the following value specifications: NULL | USER | USERGROUP | SYSDBA | UID | DATE | TIME | TIMESTAMP | UTCDATE | TIMEZONE | UTCDIFF
| TRUE | FALSE | TRANSACTION
Otherwise NULL value

DOMAINOWNER

CHAR(32)

Name of domain owner

DOMAINNAME

CHAR(32)

Name of domain

POS

FIXED(4)

Original position of column in table

KEYPOS

FIXED(4)

Original position of key column in table

PHYSICALPOS

FIXED(4)

Position of the column on the disk

CREATEDATE

DATE(10)

Creation date of column

CREATETIME

TIME(8)

Creation time of column

ALTERDATE

DATE(10)

Change date of column

ALTERTIME

TIME(8)

Change time of column

TABLETYPE

CHAR(8)

Type of table (SYSTEMS | TABLES)

COMMENT

LONG

Comment about column

See also:

Evaluating System Tables ® COLUMNS

 

Leaving content frame