| Subject | executemany and returning | 
|---|---|
| Author | Robert Dollinger | 
| Post date | 2009-09-17T10:54:19Z | 
Hi,
is there a way to use executemany with the returning value in the
insert statement?
cursor.executemany("insert into table (field1, field2) Values (?, ?)
returning IDField", [(1,1),(2,2)])
data=cursor.fetchall()
It returns only the last Value of the IDField. I would obviously
receive all Values.
bye
Robert
            is there a way to use executemany with the returning value in the
insert statement?
cursor.executemany("insert into table (field1, field2) Values (?, ?)
returning IDField", [(1,1),(2,2)])
data=cursor.fetchall()
It returns only the last Value of the IDField. I would obviously
receive all Values.
bye
Robert