What is the maximum length of data I can put in a BLOB column in MySQL?
相关问题
- Views base64 encoded blob in HTML with PHP
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
A binary large object that can hold a variable amount of binary data. The sorting and comparison of the values for these objects is performed in case-sensitive manner.
TINYBLOB
BLOB
MEDIUMBLOB
LONGBLOB
A
BLOB
can be 65535 bytes (64 KB) maximum.If you need more consider using:
a
MEDIUMBLOB
for 16777215 bytes (16 MB)a
LONGBLOB
for 4294967295 bytes (4 GB).See Storage Requirements for String Types for more info.
May or may not be accurate, but according to this site: http://www.htmlite.com/mysql003.php.
The MySQL manual says:
I think the first site gets their answers from interpreting the MySQL manual, per http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
A BLOB can be 65535 bytes maximum. If you need more consider using a MEDIUMBLOB for 16777215 bytes or a LONGBLOB for 4294967295 bytes.
Hope, it will help you.