What is BLOB and TEXT in MySQL?
BLOB is an acronym stands for binary large object. It is used to hold a variable amount of data.
There are four types of BLOB.
- TINYBLOB
- BLOB
- MEDIUMBLOB
- LONGBLOB
The differences among all these are the maximum length of values they can hold.
TEXT is case-insensitive BLOB. TEXT values are non-binary strings (character string). They have a character set and values are stored and compared based on the collation of the character set.
There are four types of TEXT.
- TINYTEXT
- TEXT
- MEDIUMTEXT
- LONGTEXT
- Explanation:
BLOB is an acronym stands for binary large object. It is used to hold a variable amount of data.
There are four types of BLOB.
- TINYBLOB
- BLOB
- MEDIUMBLOB
- LONGBLOB
The differences among all these are the maximum length of values they can hold.
TEXT is case-insensitive BLOB. TEXT values are non-binary strings (character string). They have a character set and values are stored and compared based on the collation of the character set.
There are four types of TEXT.
- TINYTEXT
- TEXT
- MEDIUMTEXT
- LONGTEXT