I asked for the most portable way of getting the field names of an SQL table through DBI. Now I want to know the simplest/most portable way of getting the last inserted id of a table that has been set up to do auto-increment of primary keys. I don't want to be pessimitic, but previously I've only seen driver dependant ways of doing this (e.g. the LAST_INSERT_ID() call in MySQL) and now face the same problem with DBD::ODBC and hope somebody knows how to do it in a cross-platform way.