📜  在 mysql 中保存 html 文件 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:15.606000             🧑  作者: Mango

代码示例1
LONGTEXT is probably excessive -- it allows data sizes up to 4GB.

MEDIUMTEXT allows 16MB.

TEXT allows 64KB.

TINYTEXT allows only 255 characters.

Very few HTML documents are going to be 64KB in size, so a TEXT ought to be suitable for you. If you really want to be safe, go for a MEDIUMTEXT.

Reference: http://dev.mysql.com/doc/refman/5.0/en/string-type-overview.html