All Products
Search
Document Center

Character data types

Last Updated: Jun 18, 2021

The following table describes the character data types supported in OceanBase Database.

Type

Length

Maximum length of definition (character)

Character set

VARCHAR

Variable

262144 (256 KB)

UTF8MB4

VARBINARY

Variable

1048576 (1 MB)

BINARY

CHAR

Fixed

256

UTF8MB4

BINARY

Fixed

256

BINARY

enum

Variable

You can define a maximum of 65535 elements, and each element contains a maximum of 255 characters.

UTF8MB4

set

Variable

You can define a maximum of 65535 elements, and each element contains a maximum of 255 characters.

UTF8MB4