| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Theoretical Basis for SELECT FOR UPDATE
Tony Andrews skrev:
[snip]
> No, the comma operator has nothing to do with other, concurrent
> transactions really. It has to do with making the transaction atomic
> *from the perspective of the session performing the operation*. Gene
> has already given a good example about printing information half-way
> through the transaction; that might look like this:
>
> update account set bal=bal+10 where ac_no=123;
> call print_total_balance_for_all_accounts;
> update account set bal=bal-10 where ac_no=456;
> commit;
>
> The TTM version would make it impossible to print the intermediate
> total (which would be 10 higher than it should be).
Would it now?
update account set bal=bal+10 where ac_no=123, call print_total_balance_for_all_accounts, update account set bal=bal-10 where ac_no=456;
(Notice commas have replaced semicolons).
/Peter Received on Tue Oct 04 2005 - 04:15:21 CDT
![]() |
![]() |