Information on all the columns for which the current authorization identifier has privileges.
Column name | Data type | Contents | ||||
TABLE_CATALOG | CHAR (18) | Database name | ||||
TABLE_SCHEMA | CHAR (31) | Name of the schema to which the table | ||||
TABLE_NAME | CHAR (31) | Name of the base table or view | ||||
COLUMN_NAME | CHAR (31) | Column name | ||||
ORDINAL_POSITION | SMALLINT | Sequence number of the column in the | ||||
COLUMN_DEFAULT | VARCHAR (256) | For base tables only: Default value, as specified in the column definition TRUNCATED if representation of the default value NULL value in all other cases | ||||
IS_NULLABLE | VARCHAR (3) |
| ||||
DATA_TYPE | VARCHAR (24) | Data type of the column: | ||||
CHARACTER | SMALLINT | Max. length of the column in code units if the data type is CHARACTER, NULL value in all other cases | ||||
CHARACTER_OCTET | SMALLINT | Max. length of the column in bytes if the data type is CHARACTER, NULL value in all other cases | ||||
NUMERIC_PRECISION | SMALLINT | Total number of significant digits for numeric data types NULL value in all other cases | ||||
NUMERIC_PRECISION | SMALLINT | Radix for numeric data types NULL value in all other cases | ||||
NUMERIC_SCALE | SMALLINT | Number of digits right of the decimal point for exact numeric data types NULL value in all other cases | ||||
DATETIME | SMALLINT | Number of digits right of the decimal point for the data types TIME and NULL value in all other cases | ||||
CHARACTER_SET | CHAR (18) | Database name if data type is CHARACTER, NULL value in all other cases | ||||
CHARACTER_SET | CHAR (31) | INFORMATION_SCHEMA if data type is CHARACTER, NULL value in all other cases | ||||
CHARACTER_SET | CHAR (18) | EBCDIC if data type is CHARACTER or UTF16 if data type is NATIONAL CHAR or NULL value in all other cases | ||||
COLLATION_ | CHAR (18) | Database name if data type is CHARACTER, NULL value in all other cases | ||||
COLLATION_SCHEMA | CHAR (31) | INFORMATION_SCHEMA if data type is CHARACTER, NULL value in all other cases | ||||
COLLATION_NAME | CHAR (18) | EBCDIC_BINARY if data type is CHARACTER or UTF16_BINARY if data type is NATIONAL CHAR or NULL value in all other cases | ||||
DOMAIN_CATALOG | CHAR (18) | NULL value | ||||
DOMAIN_SCHEMA | CHAR (31) | NULL value | ||||
DOMAIN_NAME | CHAR (31) | NULL value | ||||
FIRST_OCCURRENCE | SMALLINT | First possible occurrence of a multiple NULL value if the column is not multiple | ||||
LAST_OCCURRENCE | SMALLINT | Last possible occurrence of a multiple NULL value if the column is not multiple |
Table 69: COLUMNS view of the INFORMATION_SCHEMA (section 4 of 4)