Option C. Columns
The Columns panel displays the columns in the Db2 catalog.
Select option C on the System Catalog panel (see The System Catalog (ADB21) panel) to display the Columns panel.
The following figure shows the Columns panel.
The fields on this panel are:
- Sel
- Input field where you enter one of the line commands listed on the panel.
- Schema
- Schema of the table or view that contains the column.
- Name
- Name of the table or view that contains the column.
- Column Name
- Name of the column.
- Col No
- Numerical position of the column in the table or view.
- Col Type
- Type of column, which is one of the following data types:
- INTEGER
- Large integer.
- SMALLINT
- Small integer.
- FLOAT
- Floating-point.
- CHAR
- Fixed-length character string.
- VARCHAR
- Varying-length character string.
- LONGVAR
- Varying-length character string.
- DECIMAL
- Decimal.
- GRAPHIC
- Fixed-length graphic string.
- VARG
- Varying-length graphic string.
- LONGVARG
- Varying-length graphic string.
- DATE
- Date.
- TIME
- Time.
- TIMESTMP
- Time stamp.
- BLOB
- Binary large object.
- CLOB
- Character large object.
- DBCLOB
- Double-byte character large object.
- ROWID
- Row ID data type.
- DISTINCT
- Distinct type.
- Length
- Length attribute of the column or, in the case of a decimal column, its precision. The number does not include internal prefixes to record actual length and null state (where these are applicable).
- N
- This field indicates whether the column can contain null values. This field contains one of the
following values:
- Y
- Yes.
- N
- No.
- D
- Default value for the column. This field contains one of the following values:
- N
- None.
- Y
- Yes.
- B
- Yes.
- 1–6
- User-defined defaults.
- S
- SQLID.
- U
- USER.
- A
- Generated always.
- D
- Generated by default.
- I
- As identity and generated always.
- J
- As identity and generated as default.
- F
- This field indicates whether the column has a field procedure. This field contains one of the
following values:
- Y
- Yes.
- N
- No.