I\'m not fanatic on any database but I wish to see differences between vendors.
For instance, I use mostly Oracle and I see that others (MySQL, SQL Server, PostgreSQL, .
I don't know for the other database server but with PostgreSQL, you can
INSERT INTO mytable ( field_1, field_2,... ) VALUES ( value_1, value_2 ) RETURNING anyfield
anyfield must be a field of mytable of course.
It's very interesting when anyfield is an auto-increment.
see PostgreSQL - INSERT