python pymysql注意事項

cursor.execute 與 cursor.executemany有許多不一樣的地方mysql 1. execute 中字段的值是字符串形式時必須加引號,可是executemany只須要使用佔位符%s,pymysql利用給的參數list自動會加上引號sql 2.execute返回結果都是數字,可是executemany返回結果爲none和數字數據庫 3.executemany以後執行fetch
相關文章
相關標籤/搜索