Forum Moderators: open

Message Too Old, No Replies

Choosing correct MYSQL column type

         

adammc

2:17 am on Feb 28, 2007 (gmt 0)

10+ Year Member



Hi guys,

I am setting up tables to store data sent from FCKeditor.
What type of column am I best to use for storing the html code?

phranque

3:59 am on Feb 28, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



probably "longtext"

adammc

5:24 am on Feb 28, 2007 (gmt 0)

10+ Year Member



HI phranque,

Would longtext be better than TEXT?

phranque

8:27 am on Feb 28, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



text is good for up to about 2**16 or approximately 64K.
longtext is good for about 2**32 or approximately 4M.

it just depends on how limited you want to be for the length of the text string...