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

max_allowed_packet

时间:2016-12-23 14:14:48      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:mysq   tor   values   text   operator   system   rest   round   lob   

 

http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#function_in

SELECT val1 FROM tbl1 WHERE val1 IN (1,2,‘a‘);

The number of values in the IN list is only limited by the max_allowed_packet value.

 

http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_allowed_packet

You must increase this value if you are using large BLOB columns or long strings. It should be as big as the largest BLOB you want to use. The protocol limit for max_allowed_packet is 1GB. The value should be a multiple of 1024; nonmultiples are rounded down to the nearest multiple.

max_allowed_packet

标签:mysq   tor   values   text   operator   system   rest   round   lob   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6214346.html

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