#批量执行sql sql = 'insert into seq(blue,red) values (%s,%s)' all_res=[ ['16','01,02,03,04,05,06'], ['16','01,02,03,04,05,06'], ['16','01,02,03,04,05,06'], ] cur.executemany(sql ,all_res)
conn.commit()
需要二维数组
本文共 272 字,大约阅读时间需要 1 分钟。
#批量执行sql sql = 'insert into seq(blue,red) values (%s,%s)' all_res=[ ['16','01,02,03,04,05,06'], ['16','01,02,03,04,05,06'], ['16','01,02,03,04,05,06'], ] cur.executemany(sql ,all_res)
conn.commit()
需要二维数组
转载于:https://www.cnblogs.com/luonanhenniu/p/9463533.html