您可以执行所需的任何原始SQL查询(当然,您必须在会话中获得适当的权限)。要更改变量,请运行以下命令:
# change variable name and values to what you needconnection.execute("SET SESSION query_cache_type = OFF")
您可以执行所需的任何原始SQL查询(当然,您必须在会话中获得适当的权限)。要更改变量,请运行以下命令:
# change variable name and values to what you needconnection.execute("SET SESSION query_cache_type = OFF")