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.

halfer
  • 19,824
  • 17
  • 99
  • 186
panthro
  • 22,779
  • 66
  • 183
  • 324

2 Answers2

2

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

amdorra
  • 1,536
  • 9
  • 18
0

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

Martin Bean
  • 38,379
  • 25
  • 128
  • 201