1

I would like to store HTML in my database, what field type would you recommend?

VarChar Blob Text 

The HTML will vary in length depending on the row.

1
  • what kind of html files are you going to store? I meant small files or large files like forum? Commented Aug 21, 2013 at 11:46

2 Answers 2

2

for this task i recommend storing your html in files and in the database use varchar(255) for file path.

Sign up to request clarification or add additional context in comments.

Comments

0

Text, since HTML is, after all, text. What’s it’s MIME type? text/html.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.