Subject | Re: [firebird-support] Find Generator Value Used after Insert Trigger |
---|---|
Author | Boguslaw Brandys |
Post date | 2004-05-28T12:27:31Z |
Nigel,
procedure.
Bogusław Brandys
> set term !! ;As I know (may be inaccurate) there is no need to put SUSPEND here in this
> CREATE PROCEDURE sp_ins_tablename(
> F1 integer,
> F2 VARCHAR(20),
> F3 VARCHAR(20)
> ) RETURNS (
> int_newkey NUMERIC(18,0)
> )
> AS BEGIN
> /* Get a new generator value */
> int_newkey = gen_id(generator_name,1);
> /* Insert it into the table */
> insert into table (pkeyfield, F1, F2, F3)
> values (:int_newkey,:F1, :F2, :F3);
> SUSPEND; <-------------------------------------
procedure.
> END !!Best Regards
> SET TERM ; !!
Bogusław Brandys