IBM Books

What's New


Data Types

The following data types are available with DB2 Universal Database Version 5.2 and can be used with the call level interface (CLI):

BIGINT

The following tables are updated in the CLI Guide and Reference as a result of the added support for the BIGINT data type. See the SQL Reference for more information on this new data type.

Table 3, "SQL Symbolic and Default Data Types":

Table 4, "C Data Types":

Table 22, "SQLBindParameter Arguments", under SQLBindParameter():

Table 116, "SQLGetTypeInfo Arguments, under SQLGetTypeInfo():
Add SQL_BIGINT to the list of supported types for argument "DataType".

DATALINK

The following additions apply to Chapter 2. Writing a DB2 CLI Application of the CLI Guide and Reference as a result of support for the new DATALINK data type.

Three tables require an extra row each:

Table 3. SQL Symbolic and Default Data Types

Table 4. C Data Types

Table 7. Supported Data Conversions
The SQL Data Type SQLDATALINK only converts with SQL_C_DATALINK.

Defined Types

The following section is added to Chapter 3. Using Advanced Features.

Using Reference Types

In addition to the distinct types, user defined structured types can also be defined and used as the type for a table or view. Tables or views that are defined using a structured type are called typed tables or typed views. Structured types can be defined in a hierarchy with subtypes and supertypes. These structured types are created using the CREATE TYPE statement. Rows of a typed table or view are identified with an object identifier (OID) that is a reference type. A reference type is defined to have a target type, which must be a structured type. When the root structured type (the structured type without a supertype) is defined, the representation type for the reference type is defined as based on a built-in data type. Similar to user defined types (UDTs), a reference type shares its internal representation with an existing type, but is considered to be a separate and incompatible type for most operations.

Reference types provide a means of referring to rows in typed tables or typed views. Applications continue to work with C data types for application variables, and only need to consider the reference types when constructing C statements.

This means:

For complete rules and a description of reference types refer to the SQL Reference.


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

[ DB2 List of Books | Search the DB2 Books ]