Subject | Re: [firebird-support] Re: Generators don't works anymore |
---|---|
Author | Helen Borrie |
Post date | 2007-12-18T05:06:47Z |
At 07:39 AM 18/12/2007, amoradell wrote:
for example, above #1 should be:
select GEN_ID(gen_comuni_id,0) from rdb$database
and that will return the last value that was generated.
./hb
>Hi,These statements are not valid syntax. You cannot invoke the GEN_ID() function by supplying the arguments on their own.
>
>1 - select (gen_comuni_id,0) from rdb$database : value
>2 - insert record in columni without value for mycode
>3 - select (gen_comuni_id,0) from rdb$database : value
> should have changed !
for example, above #1 should be:
select GEN_ID(gen_comuni_id,0) from rdb$database
and that will return the last value that was generated.
./hb