Get all inserted IDs when inserting multiple rows using a single query
I've already looked at other answers and I still feel that my question is relevant and deserves a separate entry. I have a table named settings(which stores user settings) and I have to insert multiple settings for each user. Initially, I had executed a separate insert statement for each setting, but having felt this wasn't a particularly good way to do it, I thought of inserting multiple rows by the same insert statement. My only problem is that I want the auto_incremented IDs of each of the newly inserted rows. I've read answers that say this isn't possible/scalable etc, but I feel that I