我有蟒蛇cx_Oracle executemany VS executemanyprepared
def insert_multi(connection, stmt, data): """ insert multiple records with executemany :param connection: cx_oracle connection :param stmt: prepared insert statement :param data: insert data :return: """ cur = connection.cursor() cur.prepare(stmt) cur.executemany(None, data) connection.commit() cur.close()
請問這個方法從cx_oracle方法不同的光標對象executemanyprepared
這個功能呢? https://cx-oracle.readthedocs.io/en/latest/cursor.html
我該如何使用這種方法?