码迷,mamicode.com
首页 > 其他好文 > 详细

TEXT和BLOB区别

时间:2014-10-11 20:55:46      阅读:384      评论:0      收藏:0      [点我收藏+]

标签:http   io   os   ar   for   sp   on   cti   html   

  • Instances of BLOB or TEXT columns in the result of a query that is processed using a temporary table causes the server to use a table on disk rather than in memory because the MEMORY storage engine does not support those data types (see Section 8.4.4, “How MySQL Uses Internal Temporary Tables”). Use of disk incurs a performance penalty, so include BLOB or TEXT columns in the query result only if they are really needed. For example, avoid using SELECT *, which selects all columns.

 

【参考资料】

1、http://dev.mysql.com/doc/refman/5.6/en/blob.html

TEXT和BLOB区别

标签:http   io   os   ar   for   sp   on   cti   html   

原文地址:http://www.cnblogs.com/gsblog/p/4019686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!