Quote:
Originally Posted by r937
you want to update, but don't want to overwrite existing data?
that doesn't make sense
please give a specific example of a row that already exists, and the update that you would like to make to it
|
example:
Table person:
P_Id LastName FirstName Address City
1 John Mayer Street 1 London
2 Ray Caroline Street 2 Leeds
UPDATE Persons
SET Address='Street3', City='Manchester'
WHERE LastName='Ray' AND FirstName='Caroline'
The "Persons" table will now look like this:
P_Id LastName FirstName Address City
1 John Mayer Street 1 London
2 Ray Caroline Street 3 Manchester
but I still want to keep the previous data before the update as a history