Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

returning an auto_increment-ed index after an insert

Status
Not open for further replies.

dash2

Programmer
Oct 24, 2000
1
EU
I have a (perl) script which inserts new entries into a mysql table. The table is indexed using an auto_increment column, so my inserts look like

insert into sometable columns (ID, other columns....) values (null, other values....)

I need to get the IDs of the newly created columns, to use elsewhere in the script. Is there a way to do this?

Thanks
Dave! [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top