Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: thinking about UPDATE

Re: thinking about UPDATE

From: x <x-false_at_yahoo.com>
Date: Wed, 21 Jul 2004 13:33:16 +0300
Message-ID: <40fe466e$1@post.usenet.com>

"Marshall Spight" <mspight_at_dnai.com> wrote in message news:N0mLc.114236$WX.22912_at_attbi_s51...

> But what the heck is UPDATE?

Try this with your SQL DBMS:

- define a table T with a primary key F of type integer
- insert several records with consecutive values for F (like 1,2,3,...)
- try UPDATE T SET F=F+1 and see what happen

MS ACCESS 2002 and Visual FoxPro 8.0 give a key violation error. SQL Server 2000 execute the update without complaining.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Received on Wed Jul 21 2004 - 05:33:16 CDT

Original text of this message

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