On Wed, 27 Oct 2004, Michael Gargiullo wrote:
> I have a table like so:
>
> id -> auto increment
> name -> name
>
> After I insert a new name
> insert into mytable values('','Bob');
>
> I need Bob's id returned.
Hey, wait -- you could write a program to do that, couldn't you!
And reading `perldoc DBD::mysql` would totally show you how!
(Hint -- search in the perldoc for 'insertid'.)
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>