|
-
Oct 7th, 2003, 06:16 PM
#1
Thread Starter
Stuck in the 80s
[Resolved] MySQL: TINYTEXT, MEDIUMTEXT, LONGTEXT...
What's the difference, besides size, in all of these? Is there any drawbacks to using them?
If I know that a field will never have more than 500 characters, should I then use MEDIUMTEXT? Would it use up more memory to just go with TEXT?
In fact, what are the sizes? I think TINYTEXT is 255. If so, what's the difference between that and VARCHAR (since it can go up to 255).
Last edited by The Hobo; Oct 11th, 2003 at 05:42 PM.
-
Oct 7th, 2003, 08:53 PM
#2
Member
-
Oct 7th, 2003, 10:27 PM
#3
Thread Starter
Stuck in the 80s
That only tells me the sizes of the types.
-
Oct 8th, 2003, 02:26 PM
#4
Member
Thats the only difference as far as I know. Bigger size, more memory.
If so, what's the difference between that and VARCHAR
VARCHAR takes one byte more then the amount of characters being stored. If you have a 3 character string, it takes up 4 bytes etc. If you were to store the a 1 character string in a char(4), it would take 4 bytes while if it was in a varchar(4), it would only take 2 bytes.
-
Oct 11th, 2003, 05:42 PM
#5
Thread Starter
Stuck in the 80s
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|