首页 > 其他 > 详细

max_allowed_packet

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

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!