MySQL Forums
Forum List  »  Newbie

text vs longtext
Posted by: James Brawn
Date: June 15, 2007 12:43PM

According to the docs, varchar, text and blob types all take up varying space depending on what's stored in them. If this is the case, then wouldn't the text and longtext types take up the same amount of space (give or take a byte) for a string that's, say, 3000 characters in length? If so, then why not just always use longtext?

Options: ReplyQuote


Subject
Written By
Posted
text vs longtext
June 15, 2007 12:43PM
June 15, 2007 01:08PM
June 16, 2007 10:25AM
June 16, 2007 03:20PM
June 16, 2007 04:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.