On Wed, 2004-10-27 at 15:42, Chris Devers wrote:
> 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'.)
>
Thanks Chris,
I was using the PHP function instead of perl's...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>