Jump to content

How to SELECT newly INSERTED row without having unique ID to reference


BuildMyWeb

Recommended Posts

firstly, apologies on my TOPIC TITLE.  i couldnt think of how better to write it.

 

anywho, i am inserting a new row of data into a table. immediately after inserting it, i want to select the unique value in the 'id' row.  two questions. 

 

1. how can i reference this newly inserted row if the only unique value is the id (primary auto-increment)?

2. is there a way to insert this new row AND select that id value in one query?

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.