2017-08-29 75 views
0

我认为mysql中没有Clob类型。我的问题是 这是真的吗?如果它是真的(Clob不存在于mysql中)我可以使用哪种类型来保存非常长的文本?mysql:更新表字段类型到Clob

+1

https://stackoverflow.com/questions/7071662/mysql-text-vs-blob-vs-clob – Jens

+0

你可以用'TEXT'持有与65,535个字符的最大长度的字符串。或者有一个LONGTEXT - >最大大小为4GB或4,294,967,295个字符 – Rakib

+1

MySQL有一个数据类型TEXT或LONGTEXT –

回答

0

TEXT您可以使用TEXT OR BLOB数据类型。

BLOB or TEXT − A field with a maximum length of 65535 characters. 
BLOBs are "Binary Large Objects" and are used to store large amounts of binary data, such as images or other types of files. 
Fields defined as TEXT also hold large amounts of data. 
The difference between the two is that the sorts and comparisons on the stored data are case sensitive on BLOBs and are not case sensitive in TEXT fields. 
You do not specify a length with BLOB or TEXT.