Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
�yvind Gjerstad — — source: Informix-list mailing list archive (1991-1998)
anton@westsite.be (Anton Slabbinck) writes:
> Does anyone have any idea who I can get the new value for a serial field
> after an insert via DBD/DBI ?
>
> In MySQL, I can do this :
> (id is of type serial.)
>
> sth-> do ("INSERT INTO table (id) VALUES (0)");
> print $dbh->func("_InsertID");
>
> Does DBD-Informix have a equivalent for func('_InsertID') ?
$dbh->{ix_sqlerrd}[1];
--
'yvind Gjerstad Systems dept Tollpost-Globe AS N-6301 'ndalsnes/Norway
E-mail: ogj@it.tollpost.no Phone: +47 7122 6663 Fax: +47 7122 6694
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.