This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

BLOB and TEXT Data Types

Description

A BLOB is a binary large object that can hold a variable amount of data. The four BLOB types are

These differ only in the maximum length of the values they can hold.

The TEXT types are

These correspond to the four BLOB types and have the same maximum lengths and storage requirements.

BLOB and TEXT columns can have a DEFAULT value.

MariaDB starting with 10.4.3

From MariaDB 10.4, it is possible to set a unique index on columns that use the BLOB or TEXT data types.

See Also

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.