MySql field size for storing email body

2019-06-18 10:47发布

问题:

I want to store contents of email body into MySql. What would the correct type&size of the field be? Can varchar() provide enough storage size? Is there a limitation in the email body's length?

Thanks in advance.

回答1:

You will need to use blob or text types. There is no limit on the length of an email body.



回答2:

"A BLOB is a binary large object that can hold a variable amount of data"

http://dev.mysql.com/doc/refman/5.5/en/blob.html



标签: mysql size field