Jump to content

[SOLVED] Can You SELECT the Auto-incremented ID of What You've Just Inserted?


Fluoresce

Recommended Posts

When I insert data into my table, an ID is automatically generated for the new row through auto-incrementation. That's the only thing that is unique to each row.

 

I need to select some of the new data immediately, but I obviously don't know its ID. My question therefore is, is it possible to insert data and select its ID at the same time?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.