Home  >  Article  >  Database  >  How does the value of the system variable max_allowed_packet affect the results of string-valued functions?

How does the value of the system variable max_allowed_packet affect the results of string-valued functions?

WBOY
WBOYforward
2023-09-08 08:05:02566browse

系统变量 max_allowed_pa​​cket 的值如何影响字符串值函数的结果?

The string-valued function returns NULL if the length of the result is greater than the value of the max_allowed_packet system variable. Actually, max_allowed_packet is a dynamic global variable that can accept integer type values. These values ​​can only be set for sessions. It accepts a minimum value of 1024 and a maximum value of 1073741824. The default value of this system variable is 1048576.

The above is the detailed content of How does the value of the system variable max_allowed_packet affect the results of string-valued functions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete