How can I retrieve the ID of the last record I added?

Brian codeapocalypse at msn.com
Tue Jul 9 11:49:29 EDT 2002


Sandeep,

Within the transaction, after your insert, perform a SELECT
@@IDENTITY.  This should return the value for which you're looking.



More information about the Python-list mailing list