Ispirer Website
Ispirer Capabilities - Informix Migration
Free Trial
Informix Dynamic Server (IDS) Data Types - CHAR
Versions: Informix Dynamic Server 11.x, 10.x, 9.x and 7.x
Informix DS - CHAR | |
---|---|
Syntax | CHAR[(n)] |
Data | Fixed-length character data, single-byte and multibyte character sets |
Parameters | n is the maximum number of bytes, optional |
Range | 1 ⇐ n ⇐ 32767 |
Default | n is 1 |
Padding | Right-padded with spaces to n |
Error Handling | Exceeding data truncated without warning |
Storage Size | n bytes |
Synonyms | CHARACTER |
Standards | ANSI SQL |
Example:
CREATE TABLE t_char (c1 CHAR(7));
Informix DS CHAR - Equivalents in Other Databases
Database | Data Type and Conversion |
---|---|
Oracle | CHAR(n), 1 ⇐ n ⇐ 2000/charsize |
SQL Server | CHAR(n), 1 ⇐ n ⇐ 8000 |
IBM DB2 | CHAR(n), 1 ⇐ n ⇐ 254 |
MySQL | CHAR(n), 0 ⇐ n ⇐ 255 |
PostgreSQL | CHAR(n), 1 ⇐ n ⇐ 1G |
Sybase ASE | CHAR(n), 1 ⇐ n ⇐ pagesize (2K, 4K, 8K or 16K) |
Sybase ASA | CHAR(n), 1 ⇐ n ⇐ 32767/charsize |
Teradata | CHAR(n), 1 ⇐ n ⇐ 64000/charsize |
HP Neoview | CHAR(n), 1 ⇐ n ⇐ (32708 - size of other columns) |
Interbase/Firebird | CHAR(n), 1 ⇐ n ⇐ 32767/charsize |
Ingres | CHAR(n), 1 ⇐ n ⇐ 3200 |
Related Data Types in Informix
Data Types | |||
---|---|---|---|
Fixed-length Character Data | NCHAR(n) | ||
Variable-length Character Data | VARCHAR(n,r) | NVARCHAR(n,r) | LVARCHAR(n) |
Character Large Objects | TEXT | CLOB |
All Data Types