Subject | Re: A bit strange GEN_ID result |
---|---|
Author | ionokot_k |
Post date | 2004-02-21T13:03:58Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
SELECT GEN_ID(BLABLA,1) FROM "TABLE1"
only in the stored procedure version I posted the Max() version.
I would like to add it in other tables but not immediately.
In other dbms there is LAST_INSERT_ID() why Firebird don't have it?
Thanks for your help
IK
wrote:
> > In order to get the last inserted id I made this stored as a test:[CUT]
> this makes no sensenewly
> max(generator)???? There's no such thing as a maximum of a single
> generated valueThe hurry... in the code I wrote it was
> just select the generator into your var
SELECT GEN_ID(BLABLA,1) FROM "TABLE1"
only in the stored procedure version I posted the Max() version.
>Because ..ehm ... I love it :P
> But really now - why are you wanting the last inserted ID?
>
> Alan
I would like to add it in other tables but not immediately.
In other dbms there is LAST_INSERT_ID() why Firebird don't have it?
Thanks for your help
IK