MySql field size for storing email body

2019-06-18 10:45发布

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.

标签: mysql size field
2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-06-18 11:15

"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

查看更多
虎瘦雄心在
3楼-- · 2019-06-18 11:34

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

查看更多
登录 后发表回答