Home | Previous Page | Next Page   SQL Features > Using Character Data Types >

Other Character Data Types

The choice of locale can affect the following character data types, which are individually described in sections that follow:

The CHAR Data Type

The CHAR data type stores character data in a fixed-length field. Data can be a string of single-byte or multibyte letters, numbers, and other characters that are supported by the code set of your database locale.

This list summarizes how the choice of a locale affects the CHAR data type:

The VARCHAR Data Type

The VARCHAR data type stores character strings of up to 255 bytes in a variable-length field. Data can consist of letters, numbers, and symbols. CHARACTER VARYING is handled exactly the same as VARCHAR. The following list summarizes how the choice of a locale affects the VARCHAR data type:

The LVARCHAR Data Type (IDS)

The LVARCHAR data type can store character strings of up to 32,739 bytes in a variable-length field. If you specify no maximum size in its declaration, the default upper size limit is 2048 bytes. Data values can include letters, numbers, symbols, whitespace, and unprintable characters.

LVARCHAR is similar to the VARCHAR data type in several ways:

Unlike VARCHAR, however, LVARCHAR has no reserved size parameter, and data strings in LVARCHAR columns can be longer than the VARCHAR limit of 255 bytes.

The database server also uses LVARCHAR to represent the external format of opaque data types. In I/O operations of the database server, LVARCHAR data values have no upper limit on their size, apart from file size restrictions or limits of your operating system or hardware resources.

The TEXT Data Type

The TEXT data type stores any kind of text data. TEXT columns typically store memos, manual chapters, business documents, program source files, and other types of textual information. The following list summarizes how the choice of a locale affects the TEXT data type:

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