Subject | Re: [firebird-support] timestamp trigger? |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2006-10-13T06:38:27Z |
Others have already helped you solve your problem. I thought I could
just say why your original statement didn't work (or at least one of the
reasons, I haven't tested anything).
SELECT ... INTO ... FROM
Rather, it is
SELECT ... FROM ... INTO
So, I'd expect
select CURRENT_TIMESTAMP from rdb$database
into NEW.MYTIMESTAMPFIELD
to not produce any syntactical error.
Set
just say why your original statement didn't work (or at least one of the
reasons, I haven't tested anything).
> select CURRENT_TIMESTAMP into NEW.MYTIMESTAMPFIELD,The syntax isn't
> from rdb$database;
SELECT ... INTO ... FROM
Rather, it is
SELECT ... FROM ... INTO
So, I'd expect
select CURRENT_TIMESTAMP from rdb$database
into NEW.MYTIMESTAMPFIELD
to not produce any syntactical error.
Set