Subject | Re: Looking for answer on ADO/ODBC Auto_Increment Return Value |
---|---|
Author | David at PFI |
Post date | 2005-01-03T16:51:03Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
I have been trying to figure out a way to grab the id of the last
insert for a multipage form. I use PHP and Firebird. It is easy in
mysql, but I prefer Firebird ;) You mentioned a FAQ on the site.
firebird.sourceforge.net ??? I can't find it. Or even googling does
not turn up anything for Firebird. Can you post a link?
Thanks
David
wrote:
> At 06:31 PM 2/01/2005 -0500, you wrote:on. I need
>
> >Greetings list,
> >
> >I am currently having a problem with an application I am working
> >to return the primary key value (generated by atrigger/generator/procedure
> >combination) of the newly inserted record.there is
> >
> >I am using ASP (with VBScript) and ADO/ODBC to connect to my firebird
> >database. After countless hours of searching online I found a command
> >"SELECT @@IDENTITY" for MSSQL to retrieve the value, but wonder if
> >a similar command for Firebird or another work around.on the
> >
> >Thanks much in advance.
>
> The trick is to get it *before* you post the insert. There's an FAQ
> website that tells you how to do it.Hello Helen
>
> ./heLen
I have been trying to figure out a way to grab the id of the last
insert for a multipage form. I use PHP and Firebird. It is easy in
mysql, but I prefer Firebird ;) You mentioned a FAQ on the site.
firebird.sourceforge.net ??? I can't find it. Or even googling does
not turn up anything for Firebird. Can you post a link?
Thanks
David