I’m storing text for a blog article using VARCHAR and I was wondering if it will take into account the returns in the text or just store the information as a big blob of text?
side note:
I’m not using a WYSIWYG because I don’t want the blog users to be able to style their articles.
Yes, a ‘return’ is still a new line character, so will be stored.
It’s essentially stored as a \n (a new line)
If you’re storing large chunks of text though, you should look to using something like the ‘TEXT’ or ‘BLOB’ formats, rather than VARCHAR
For more information on those types, see the docs: http://dev.mysql.com/doc/refman/5.0/en/blob.html