COLUMNS 

This system table contains the columns in all the tables, views, synonyms, and result tables for which the current user has privileges.

COLUMNS

OWNER

CHAR(32)

Name of the owner of the database object

TABLENAME

CHAR(32)

Name of the database object

COLUMNNAME

CHAR(32)

Name of the column

MODE

CHAR(3)

Type of column (KEY | MAN | OPT)

DATATYPE

CHAR(10)

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

CODETYPE

CHAR(8)

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

LEN

FIXED(4)

Length or precision of the column

DEC

FIXED(3)

Number of decimal places in the columns of data type FIXED

COLUMNPRIVILEGES

CHAR(8)

Privileges of the current user for the column

DEFAULT

CHAR(254)

DEFAULT value for the column

DOMAINOWNER

CHAR(32)

Name of the owner of the domain

DOMAINNAME

CHAR(32)

Name of the domain

POS

FIXED(4)

Original position of the column in the table

KEYPOS

FIXED(4)

Original position of the key column in the table

CREATEDATE

DATE

Creation date of the column

CREATETIME

TIME

Creation time of the column

ALTERDATE

DATE

Alter date of the column

ALTERTIME

TIME

Alter date of the column

TABLETYPE

CHAR(8)

Type of table

COMMENT

LONG

Comment on the column