[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
11.3.1 The CHAR and VARCHAR Types | ||
11.3.2 The BLOB and TEXT Types | ||
11.3.3 The ENUM Type | ||
11.3.4 The SET Type |
The string types are CHAR
, VARCHAR
, BLOB
, TEXT
,
ENUM
, and SET
. This section describes how these types work,
their storage requirements, and how to use them in your queries.
Type | Max.size | Bytes |
TINYTEXT or TINYBLOB | 2^8-1 | 255 |
TEXT or BLOB | 2^16-1 (64K-1) | 65535 |
MEDIUMTEXT or MEDIUMBLOB | 2^24-1 (16M-1) | 16777215 |
LONGBLOB | 2^32-1 (4G-1) | 4294967295 |