cx_oracle 插入多条记录
使用executemany() 多条插入INTO TEST (NAME, ID) VALUES ('Mike', 1);INSERT INTO TEST (NAME, ID) VALUES ('Matt', 2); 这样来cursor.executemany("INSERT INTO TEST (NAME, ID) VALUES(:1, :2)", [{'1': 'Mike', '2':1}, {'1': 'Matt', '2':2}])
使用executemany() 多条插入INTO TEST (NAME, ID) VALUES ('Mike', 1);INSERT INTO TEST (NAME, ID) VALUES ('Matt', 2); 这样来cursor.executemany("INSERT INTO TEST (NAME, ID) VALUES(:1, :2)", [{'1': 'Mike', '2':1}, {'1': 'Matt', '2':2}])