Re: How to check if index was updated?
- From: "Tim Hall" <timhall1@xxxxxxxxx>
- To: "Oracle Discussion List" <oracle-l@xxxxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 07:51:30 -0700
Another thing to watch out for in this scenario is database triggers. (This
is a common situation in Oracle Forms shops, where the default behavior of
forms is to update all of the selected database columns as opposed to just
the ones that changed).
As a general rule, it's smart to construct the WHEN clauses of database
triggers to fire only when the values of the columns you care about are
actually changing:
Wrong:
WHEN UPDATING(mycolumn)
Right (one possible method):
WHEN (NVL(OLD.mycolumn,some impossible value) != NVL(NEW.mycolumn,same
impossible value))
HTH
Tim
On 27 Apr 2006 07:11:47 -0700, David Aldridge <david@xxxxxxxxxxxxxxxxxx>
wrote:
>
> It certainly shows the right attitude!
>
> rjamya wrote:
> > they haven't settled on the solution ... yet, and that's why they
> > asked me. Which is nice, right?
> >
> >
> >
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
- References:
- How to check if index was updated?
- From: rjamya
- Re: How to check if index was updated?
- From: Niall Litchfield
- Re: How to check if index was updated?
- From: rjamya
- Re: How to check if index was updated?
- From: David Aldridge
- Re: How to check if index was updated?
- From: rjamya
- Re: How to check if index was updated?
- From: David Aldridge
Other related posts:
- » How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » RE: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- » Re: How to check if index was updated?
- How to check if index was updated?
- From: rjamya
- Re: How to check if index was updated?
- From: Niall Litchfield
- Re: How to check if index was updated?
- From: rjamya
- Re: How to check if index was updated?
- From: David Aldridge
- Re: How to check if index was updated?
- From: rjamya
- Re: How to check if index was updated?
- From: David Aldridge