Unix Technical Forum

How long are TINYTEXT, TEXT, and MEDIUMTEXT variables?

This is a discussion on How long are TINYTEXT, TEXT, and MEDIUMTEXT variables? within the MySQL forums, part of the Database Server Software category; --> Hi, I need to have I column in a table where i will store text whose maximal length is ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:30 AM
showandbeshown@gmail.com
 
Posts: n/a
Default How long are TINYTEXT, TEXT, and MEDIUMTEXT variables?

Hi,

I need to have I column in a table where i will store text whose
maximal length is 1024 characters. Which type I have to set for this
column? How long are TINYTEXT, TEXT, and MEDIUMTEXT variables? Dos the
answer on the last question system dependent? What is
"max_sort_length" and how can I know the value of this variable?

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:30 AM
Kevin
 
Posts: n/a
Default Re: How long are TINYTEXT, TEXT, and MEDIUMTEXT variables?

Tinytext is 255 max characters
Text is 65,535 max characters
MediumText is 16,777,215 max characters

So you would use TEXT since it is more than tiny and adequate for your
needs.

The default value of max_sort_length is 1024. This value can be
changed using the --max_sort_length= N option when starting the mysqld
server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:30 AM
Captain Paralytic
 
Posts: n/a
Default Re: How long are TINYTEXT, TEXT, and MEDIUMTEXT variables?

On 14 Dec, 03:28, showandbesh...@gmail.com wrote:
> Hi,
>
> I need to have I column in a table where i will store text whose
> maximal length is 1024 characters. Which type I have to set for this
> column? How long are TINYTEXT, TEXT, and MEDIUMTEXT variables? Dos the
> answer on the last question system dependent? What is
> "max_sort_length" and how can I know the value of this variable?
>
> Thank you!


To answer questions like this in the future, you might find that
reding the manual helps:
http://dev.mysql.com/doc/refman/5.0/...uirements.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:00 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com