Subject | Re: [firebird-support] Re: ISQL & trigger |
---|---|
Author | Ivan Prenosil |
Post date | 2004-10-04T13:21:02Z |
> > First you said you were using isql; next, you said you were usingNo, isql is isql, Mitec is Mitec, iboconsole is iboconsole, etc.
> an interactive statement processor. Which is it?
>
> But isn't ISQL "Interative SQL" ? Isn't Mitec IB Query an interactive
> ISQL editor ?
See the pattern ? :-)
> --- added by meYou forgot to put terminator after the Create Trigger command, i.e.
> SET TERM !!;
> --- added by me
> CREATE TRIGGER my_before_trigger FOR my_table
> BEFORE INSERT
> AS
> BEGIN
> IF (NEW.my_number IS NULL)
> THEN NEW.my_number = GEN_ID(my_generator, 1);
> END
> --- added by me
> SET TERM ; !!
> --- added by me
...
> THEN NEW.my_number = GEN_ID(my_generator, 1);Ivan
> END !!
> SET TERM ; !!