MySQL text limits
Today’s scary discovery: MySQL TEXT fields have a limit of 65,000 bytes. If you insert anything larger than that in to a normal TEXT field mySQL will silently truncate your data without telling you (meaning software checks are probably a good idea). MEDIUMTEXT will store 16 million characters and LONGTEXT can handle over 4 trillion, but this information does not appear to be readily available in the online mySQL manual (although it is hinted at in this table). Something to bare in mind when designing database applications.
Nick - 2nd August 2002 03:49 - #
Simon - 2nd August 2002 08:40 - #
Joen - 6th December 2003 13:36 - #
Vinu - 5th January 2004 09:46 - #
MG - 13th February 2004 19:04 - #
Lurker - 27th March 2004 18:08 - #
Ramon - 10th February 2005 17:39 - #
Marcelo Leone - 29th June 2005 19:06 - #
Greg - 7th November 2005 22:43 - #
Someone told me that there is an option or maybe a "special" text field in MySQL that would keep new lines..
uh.. I'm really not sure how to explain what I mean.. but.. There's exemple of what I'm talking about..
Into the database text would be like that:
-----------
Les gourmands n'ont plus qu'à se mettre à la diète! Les plats que vous découvrirez vous feront voyager dans un univers d'épices dont vous ne soupçonniez même pas la saveur.
De savoureux cocktails exotiques enflammeront vos papilles et vous découvrirez des goûts et des couleurs que votre imagination n'aurait jamais pu créer...
-----------
which is perfect but without me writing br or p it would be like that on the web site:
-----------
Les gourmands n'ont plus qu'à se mettre à la diète! Les plats que vous découvrirez vous feront voyager dans un univers d'épices dont vous ne soupçonniez même pas la saveur. De savoureux cocktails exotiques enflammeront vos papilles et vous découvrirez des goûts et des couleurs que votre imagination n'aurait jamais pu créer...
-----------
So that's it.. I'm looking for a way to display it as I want without html tags and without fonctions like nl2br and all that jazz..
Thanks,
Mel.
Mel - 8th November 2005 17:36 - #
Go - 9th November 2005 03:57 - #
Aaron Watkins - 11th February 2006 16:13 - #
Nicholas Corey - 18th July 2006 09:55 - #
Ashley Etchell - 29th August 2006 15:35 - #