Re: Do we always have to update or insert? Why can't we just relate?
Date: Tue, 18 Oct 2005 04:58:54 GMT
Message-ID: <ii%4f.216064$oW2.17092_at_pd7tw1no>
Marshall Spight wrote:
> Gene Wirchenko wrote:
>
>>Does including a fact twice make it more true?
>
>
> No. But asserting a fact twice doesn't make it *less* true,
> either, which is what the current behavior of insert says.
>
>
> Marshall
>
i'm with Marshall on this one - i'd rather just say 'assert' even if that word has special meaning for some debugging practices (same goes analogously for 'delete' for that matter). always better to say the right thing twice than the wrong thing once. 'INSERT OR UPDATE' always made sense to me, in fact, 'INSERT OR DELETE' wouldn't bother me.
btw, i think Marshall didn't say that duplicate keys should be allowed. it's been a long time since i wrote a channel program, but i vaguely remember that the ibm hw allowed duplicate keys in some circumstances (some of the access methods, eg. ISAM prevented dups in software) - maybe somebody could correct me if i'm remembering wrongly.
p Received on Tue Oct 18 2005 - 06:58:54 CEST