mysql:将表字段类型更新为Clob

时间:2017-08-29 11:42:28

标签: mysql text clob

我认为mysql中没有类型Clob。 我的问题是: 这是真的?如果它是真的(Clob doe' sn存在于mysql中)我可以使用哪种类型来保存很长的文本?

1 个答案:

答案 0 :(得分: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.