I have a problem when running executemany
with cx_oracle
WHen I run the following statement, I receive ORA-01036: illeagal variablename/number
infotext_list
is a list of strings that should be compared with the "SOMETHING"
it looks like ["abc", "bcd", "def", ...] and every string in it should be compared with the SOMETHING in that other databasetable!
insert_stmt = 'INSERT INTO data_table (...) SELECT ... FROM other_table WHERE SOMETHING = ? '
curs.executemany(insert_stmt, infotext_list)
If I iterate over the infotext_list
and use the standard execute()
method it just works fine but it takes forever.