python pymysql注意事项

cursor.execute 与 cursor.executemany有许多不一样的地方mysql 1. execute 中字段的值是字符串形式时必须加引号,可是executemany只须要使用占位符%s,pymysql利用给的参数list自动会加上引号sql 2.execute返回结果都是数字,可是executemany返回结果为none和数字数据库 3.executemany以后执行fetch
相关文章
相关标签/搜索