Say a table T with a PRIMARY KEY id
, I set it to AUTO INCREMENT.
I need to get the newly INSERTED id value for other operation, however, since it's the only PRIMARY KEY and AUTO INCREMENT, I don't how to do it.
Another SELECT with all other values in WHERE is valid in theory, but it's too slow.
Any better ideas?