Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Trigger Question
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
![]() |
![]() |