The other way is to have yet another field. When you create the new row with insert, set this field to a random number. then immediately to a SELECT id WHERE random=3598793457 or whatever the number was.
Works for any database.
____________________
Jeremy
I didn't believe in evil until I dated it.