gpt4 book ai didi

python - MySQLdb 模块是否支持准备好的语句?

转载 作者:行者123 更新时间:2023-11-29 23:27:17 25 4
gpt4 key购买 nike

MySQLdb是否支持服务器端prepared statements ?我无法从它的手册中弄清楚这一点。

最佳答案

检查 MySQLdb Package Comments :

"Parameterization" is done in MySQLdb by escaping strings and then blindly interpolating them into the query, instead of using the MYSQL_STMT API. As a result unicode strings have to go through two intermediate representations (encoded string, escaped encoded string) before they're received by the database.

所以答案是:不,不是。

关于python - MySQLdb 模块是否支持准备好的语句?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26856354/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com