且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从 python mysql 查询中转义 %

更新时间:2023-01-29 21:42:12

文档:

请注意,传递给 execute() 的查询字符串中的任何文字百分号都必须进行转义,即 %%.

Note that any literal percent signs in the query string passed to execute() must be escaped, i.e. %%.