Subject | Re: [Firebird-Architect] transient data sets and procedures |
---|---|
Author | Jacqui Caren |
Post date | 2005-02-21T10:53:55Z |
Dmitry Yemanov wrote:
do otherwise is to
apply before update triggers (per row) to populate
a package array and update package counters.
apply a after update trigger to consume the
values and update stats tables, clearing counters
and arrays when done.
As the package scoped vars are per transaction
but are visible to all triggers/SP's we have a
clean and simple way of passing data between
triggers during the execution of one or more
queries within a transaction.
It would be neat if FB had similar features
and I hope that temp tables (per transcation?)
go some way towards this.
Jacqui
> Ann et al,One trick I have used with Oracle that is difficult to
>
> Regarding temporary datasets vs PSQL.
>
do otherwise is to
apply before update triggers (per row) to populate
a package array and update package counters.
apply a after update trigger to consume the
values and update stats tables, clearing counters
and arrays when done.
As the package scoped vars are per transaction
but are visible to all triggers/SP's we have a
clean and simple way of passing data between
triggers during the execution of one or more
queries within a transaction.
It would be neat if FB had similar features
and I hope that temp tables (per transcation?)
go some way towards this.
Jacqui