Subject | Re: call Generator from Java-Code |
---|---|
Author | Ruslan Cheremin |
Post date | 2003-11-12T10:18:54Z |
--- In Firebird-Java@yahoogroups.com, "roelofsen2003" <info2@t...>
wrote:
SELECT GEN_ID(genName,1) from RDB$DATABASE
Ruslan.
wrote:
> Hi!ids
>
> Is there a way to call a generator from my java code? I´m using
> several generators for my primary-key-columns and i must know the
> to setup my 1-n relations.think
>
> As i know, firebird doesn´t support st.getGeneratedKeys() so i
> calling a generator before insert is the easiest way. Or not?You can get value from generator executing SQL query like this:
>
> Thanks,
>
> Roman
SELECT GEN_ID(genName,1) from RDB$DATABASE
Ruslan.