IBM Books

Administration Guide


OBJCAT.DATATYPES

Contains a row for every data type, including built-in and user-defined types.

Table 106. OBJCAT.DATATYPES Catalog View
Column Name Data Type Nullable Description
TYPESCHEMA CHAR(8)
Qualified name of the data type (for built-in types, TYPESCHEMA is SYSIBM).
TYPENAME VARCHAR(18)
DEFINER CHAR(8)
Authorization ID under which type was created.
SOURCESCHEMA CHAR(8) Yes Qualified name of the source type for distinct types. Qualified name of the builtin type used as the reference type that is used as the representation for references to structured types. Null for other types.
SOURCENAME VARCHAR(18) Yes
METATYPE CHAR(1)
  R=user-defined structured type
  S=System predefined type
  T=user-defined distinct type

TYPEID SMALLINT
Internal type ID.
SOURCETYPEID SMALLINT Yes Internal type ID of source type (null for built-in types). For user-defined structured types, this is the internal type ID of the reference representation type.
LENGTH INTEGER
Maximum length of the type. 0 for system predefined parameterized types (for example, DECIMAL and VARCHAR). For user-defined structured types, this indicates the length of the reference representation type.
SCALE SMALLINT
Scale for distinct types or reference representation types based on the system predefined DECIMAL type. 0 for all other types (including DECIMAL itself).
CODEPAGE SMALLINT
Code page for character and graphic distinct types or reference representation types; 0 otherwise.
CREATE_TIME TIMESTAMP
Creation time of the data type.
INSTANTIABLE CHAR(1)
'Y' to indicate type can be instantiated.
INLINE_LENGTH INTEGER
Length of structured type that can be kept with base table row. Always 0.
REMARKS VARCHAR(254) Yes User-supplied comment, or null.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]