python裏面的execute與executemany區別

可以看出明顯的區別, 如果需要批量插入數據庫,還是用 executemany方法 這個和execute 不是一個數量級. 如果只是插入比較少的數量量 用 exectue 比較好點. 總的來說execute與executemany功能差不多,只不過後者比前者速度快一些。
相關文章
相關標籤/搜索