thinking about UPDATE
From: Marshall Spight <mspight_at_dnai.com>
Date: Wed, 21 Jul 2004 04:10:22 GMT
Message-ID: <N0mLc.114236$WX.22912_at_attbi_s51>
Hi all,
Date: Wed, 21 Jul 2004 04:10:22 GMT
Message-ID: <N0mLc.114236$WX.22912_at_attbi_s51>
Hi all,
INSERT is a lot like union, but with an odd restriction that the intersection of the new set and the existing set must be empty. (Why?) DELETE is the same thing as set subtraction.
But what the heck is UPDATE?
UPDATE T set a1 = 0 where <cond>
That's certainly more complicated than I would suspect
for what seems like such a simple operation.
is
T' = T { 0, a2, ... an | <cond> }
T = T - T { a1, a2, ... an | <cond> }
T = T union T'
Marshall Received on Wed Jul 21 2004 - 06:10:22 CEST
