Subject | Re: [firebird-support] Re: Update more than one column in only one row with a trigger: |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2009-08-03T07:12:35Z |
> I have tried your code, it didn't work but it gave me the missing link I was looking for.When it's speed stop satisfy you, try this:
> Problem solved!
>
> Although I find the double “where field_1 = new.field_a†annoying the version beneath works fine:
as
begin
select field_2, field_3 from table_1 where field_1 = new.field_a into
:new.field_b, :new.field_c
end
And trigger must be before insert or update table_2, of course.
SY, SD.