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: Avoiding any locks in SQL Servers - read and understand....its magic.

Re: Avoiding any locks in SQL Servers - read and understand....its magic.

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 26 Jan 2004 15:38:32 +0000 (UTC)
Message-ID: <bv3c9o$qrv$1@sparta.btinternet.com>


Note in-line

-- 
Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr


Next public appearances:
 Jan 29th 2004 UKOUG Unix SIG -  v$ and x$
 March 2004 Hotsos Symposium - The Burden of Proof
 March 2004 Charlotte NC OUG - CBO Tutorial
 April 2004 Iceland


One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html


Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html
____UK___February


The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html


"VC" <boston103_at_hotmail.com> wrote in message
news:31e0625e.0401260623.1d635fbd_at_posting.google.com...

>
> The constraint is right there, in the statement itself:
>
> update t1 set amount=amount-80
> where (select t1.amount+t2.amount from t1 join t2 on t1.id=t2.id) > 0;
>
That's not a constraint, that's just a simple condition. The following statement works just as well on your original dataset (and I suspect it would do the same thing on all the commercial RDBMSs): update t1 set amount=amount-1000 where (select t1.amount+t2.amount from t1 join t2 on t1.id=t2.id) > 0; I think the point you are really making isn't about serializability, it's about commercial databases failing to implement some features of generic constraints.
Received on Mon Jan 26 2004 - 09:38:32 CST

Original text of this message

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