Subject | Re: [ib-support] more questions on use of generators |
---|---|
Author | Jon Perez |
Post date | 2002-11-12T06:06:28Z |
Alan McDonald wrote:
SELECT <function> as in SELECT LAST_INSERT_ID() which
makes intuitive sense to me as opposed to Firebird's:
select gen_id(GENNAME, 0) as GenVal from RDB$Database
which I can't figure out how it works because
gen_id(GENNAME,n) does not return a value by itself,
nor does there seem to be any entries in RDB$Database
if one does a 'select * from RDB$Database'.
> Jon,Sorry, to clarify I meant a SELECT in the form of
> you can't use this syntax in MySQL...!
> you have to ask for the LAST_INSERT_ID() which is connection specific,
> non-table specific.
> I think you would find the IB/FB generator construct a lot more flexible
>
> Alan
SELECT <function> as in SELECT LAST_INSERT_ID() which
makes intuitive sense to me as opposed to Firebird's:
select gen_id(GENNAME, 0) as GenVal from RDB$Database
which I can't figure out how it works because
gen_id(GENNAME,n) does not return a value by itself,
nor does there seem to be any entries in RDB$Database
if one does a 'select * from RDB$Database'.