What are the differences between the BLOB and TEXT datatypes in MySQL?

后端 未结 6 1633
遇见更好的自我
遇见更好的自我 2020-11-29 19:30

What is blob and what is text? What are the differences?

When do I need to use blob and when do I need text as da

6条回答
  •  青春惊慌失措
    2020-11-29 20:25

    A BLOB is a binary string to hold a variable amount of data. For the most part BLOB's are used to hold the actual image binary instead of the path and file info. Text is for large amounts of string characters. Normally a blog or news article would constitute to a TEXT field

    L in this case is used stating the storage requirement. (Length|Size + 3) as long as it is less than 224.

    Reference: http://dev.mysql.com/doc/refman/5.0/en/blob.html

提交回复
热议问题