[Zope] Returning incremented id from mysql query?

Alec Munro alec.munro@eoascientific.com
Wed, 14 Aug 2002 20:21:22 -0300


Hi all,

I'm looking for a way to get the id generated when I insert data into a
table with an auto-incremented key?
I've found vague references to this, but assuming I do an insert from a
python script, calling an SQL method like:
container.SQL.insertSomething(name="bob")
how would I get the id.

Thanks very much, hope someone can help me with this.

Alec Munro