MySql field size for storing email body

本小妞迷上赌 提交于 2020-01-03 09:08:48

问题


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



来源:https://stackoverflow.com/questions/6766449/mysql-field-size-for-storing-email-body

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!