Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.