Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When defining a BLOB field, what is the recommended size? 1

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
I guess my title covers my entire subject matter :cool:

I am, for the first time, using BLOB field. When I use TEXT I normally set it to 10 (think to remember this from MS-SQL). What should I use as length when using BLOB? Does it matter?

Thanks
 
A BLOB-type field can be declared as TINYBLOB, BLOB, MEDIUMBLOB, or LONGBLOB, which give capacities of 255, 64k, 1.6M, and 4.2G bytes respectively. You do not specify a numerical length. Which one you use depends on the maximum possible length of the data the field will hold.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top