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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting a handle to the current ID using DBI

Status
Not open for further replies.

carpeliam

Programmer
Mar 17, 2000
990
US
I've prepared and executed an "INSERT" statement, but now I want to insert the ID into another table as a foreign key. How do I get a handle on the ID that I just executed?

I'm using MySQL and the DBI.pm module. I appreciate any help that anybody can give me; if I haven't given enough information, please let me know. Liam Morley
imotic@hotmail.com
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
 
ooo. i tried to get an ID once, and i just couldn't figure out how to do it. you might try asking this questions on the DBI mailing list, which you can access through . also, i don't have a copy of Programming the Perl DBI, but the answer might be in there (and it's a really good book otherwise).

sorry i couldn't be of more help :-( "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
I tried that URL, and the server could not be found.. is this a bad link, or is there a temporary problem with the server?<br><br>Thanks for helping.. <p>Liam Morley<br><A HREF="mailto:"></A><br>&quot;light the deep, and bring silence to the world.<br>light the world, and bring depth to the silence.&quot;
 
Hmm... that doesn't seem to be working either, although my browser recognized the URL- apparently I've been to pages in this domain before (probably the last time I was looking for something, it came up on a Google search).. might be down temporarily, or maybe my ISP is having problems. Thanks, though.. <p>Liam Morley<br><A HREF="mailto:"></A><br>&quot;light the deep, and bring silence to the world.<br>light the world, and bring depth to the silence.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top