Contents Index Character data types CHARACTER VARYING (VARCHAR) data type [Character]

ASA SQL Reference
  SQL Data Types
    Character data types

CHAR data type [Character]


Function 

Character data of maximum length max-length bytes.

Syntax 

CHAR | CHARACTER } [ ( max-length ) ]

Usage 

The default value of max-length is 1.

For strings up to 254 bytes in length, the storage requirement is the number of bytes in the string plus one additional byte. For longer strings, there is more overhead.

Strings of multi-byte characters can be held as the CHAR data type, but max-length is in bytes, not characters.

Parameters 

max-length     The maximum length in bytes of the string. The maximum size allowed is 32767.

Standards and compatibility 
See also 

CHARACTER VARYING (VARCHAR) data type [Character]

LONG VARCHAR data type [Character]


Contents Index Character data types CHARACTER VARYING (VARCHAR) data type [Character]