Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Trigger Question

Re: Trigger Question

From: Joerg Leute <leute_at_itdesign.de>
Date: Sat, 26 Jun 1999 19:54:12 +0200
Message-ID: <7l341r$147g$1@news.lf.net>


True, but if you use the trigger to lock Table1, count it and then insert it into the other one would work

LOCK TABLE TABLE IN EXCLUSIVE MODE NOWAIT;

Count......
Insert......
Unlock it.....



>This is harder then it sounds. In a multi-user environment you will have
some
>issues unless you serialize access to table A based on your 'criteria'. If
you
>let 2 people simultaneously insert into A rows that match that
'criteria' --
>neither will see eachothers insert and may come to erroneous conclusions.
>
>See
>
Received on Sat Jun 26 1999 - 12:54:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US