Reply
TEXT and LONGTEXT field lengths
Old 08-16-2007, 09:24 AM TEXT and LONGTEXT field lengths
Novice Talker

Posts: 11
Name: Keith
I have a database that has some fields that are 50 characters and some that are 15,000.

For the fields that are 50 to 255 I use VARCHAR.

Any fields that are 15,000 I use LONGTEXT (just figuring that it holds more data).

I was wondering what is the maximum characters for TEXT? Should I use LONGTEXT for the fields that are 15,000 or TEXT.

This is a MySQL database.

Last edited by kknoer : 08-16-2007 at 11:36 AM.
kknoer is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-16-2007, 07:45 PM Re: TEXT and LONGTEXT field lengths
chrishirst's Avatar
Super Moderator

Posts: 13,576
Location: Blackpool. UK
TEXT column = 64k (65535) Characters

MEDIUMTEXT = ~16Mb

LONGTEXT = ~4Gb
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to TEXT and LONGTEXT field lengths
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.21913 seconds with 12 queries