If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > how to store +/- 500char text in db

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-04, 05:01
buriedUnderGrou buriedUnderGrou is offline
Registered User
 
Join Date: Jul 2004
Posts: 3
how to store +/- 500char text in db

what is the best way for me to store approx 500chars of text in my table? text / varchar / blob / other? Can anyone explain the differences / benefits?
Reply With Quote
  #2 (permalink)  
Old 08-12-04, 07:36
SQLMaestro SQLMaestro is offline
Registered User
 
Join Date: Jun 2004
Posts: 12
Hi,

If you want to store more than 255 characters of text in MySQL table, you should use the TEXT column type. CHAR and VARCHAR don't match your needs because both of them allow to store strings with max. lenght <= 255. The BLOB type is almost the same as TEXT, but it is generally used for storing binary data.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On