Jump to content

How much information can a DATABASE Text Area Hold?


phpretard

Recommended Posts

Googled:

top result

MySQL text limits

Today’s scary discovery: MySQL TEXT fields have a limit of 65000 bytes. If you insert anything larger than that in to a normal TEXT field mySQL will ...

simonwillison.net/2002/Aug/1/mysqlTextLimits/ - 13k -

You mean LONGTEXT, right akitchin? =P  I think LONGTEXT can handle over 4 trillion.  Read it somewhere a while ago.

 

that would be the one.

 

Lol, I was just thinking that MEGATEXT would be a pretty sick column name.  Just sounds so cool for a data type.

http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html

 

tinyblob/text = 2^8 bytes

blob/text = 2^16 bytes

mediumblob/text = 2^24 bytes

longblob/text = 2^32 bytes

 

Depending on your encoding, 1 character usually takes up 1 byte of space.

CHAR( ) A fixed section from 0 to 255 characters long.

VARCHAR( ) A variable section from 0 to 255 characters long.

TINYTEXT A string with a maximum length of 255 characters.

TEXT A string with a maximum length of 65535 characters.

BLOB A string with a maximum length of 65535 characters.

MEDIUMTEXT A string with a maximum length of 16777215 characters.

MEDIUMBLOB A string with a maximum length of 16777215 characters.

LONGTEXT A string with a maximum length of 4294967295 characters.

LONGBLOB A string with a maximum length of 4294967295 characters.

Lol, I was just thinking that MEGATEXT would be a pretty sick column name.  Just sounds so cool for a data type.

 

+1 For MEGATEXT (what about longshort? longbool?).  ;D This is good to know regarding how much space a field type can hold.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.