Skip to main content

Overview of large object and text types

seekdb supports the BLOB and TEXT types for large objects and text.

The following table describes the large object and text types supported by seekdb in the current version and related information.

TypeLengthMaximum Storage Length (Bytes)Character Set
TINYBLOBVariable255BINARY
BLOBVariable65535BINARY
MEDIUMBLOBVariable16777215BINARY
LONGBLOBVariable536870910BINARY
TINYTEXTVariable256UTF8MB4
TEXTVariable65535UTF8MB4
MEDIUMTEXTVariable16777215UTF8MB4
LONGTEXTVariable536870910UTF8MB4
STRINGVariable16777216UTF8MB4

In most cases, you can treat a BLOB column as a VARBINARY column and a TEXT column as a VARCHAR column. BLOB and TEXT/STRING differ from VARBINARY and VARCHAR in the following aspects:

  • You must specify the prefix length for an index on a BLOB or TEXT column. For CHAR and VARCHAR, the prefix length is optional.

  • BLOB and TEXT/STRING columns cannot have DEFAULT values.