Skip to main content

Overview of string types

seekdb supports the CHAR, VARCHAR, BINARY, and VARBINARY data types.

The following table describes the string types supported in the current version of seekdb and their related information.

TypeLength TypeMaximum LengthCharacter Set
CHARFixed-length256 charactersUTF8MB4
VARCHARVariable-length262,144 charactersUTF8MB4
BINARYFixed-length256 bytesBINARY
VARBINARYVariable-length1,048,576 bytesBINARY

For the CHAR type, the length is measured in characters. For the VARCHAR, BINARY, and VARBINARY types, the length is measured in bytes.