Microsoft
Software
Hardware
Network
Question : Appending to table with primary key vfp
Hi:
I want to be able to append new records to an existing table.
However, I do not want to duplicate any append so have set a primary key in the existing table.
FoxPro does not (I believe) allow append of all but duplicated records - it stops the append.
How can I either write a query that deletes those records common to both tables or force an append, discarding common records?
Thanks!!
Answer : Appending to table with primary key vfp
insert into table1 select * from table2 where PrimaryKeyField not in (select PrimaryKeyField from table1)
Random Solutions
asp.net: question what is the best way to save pictures in a storage file or Database?
basic physics - ball bearing falling through oil
Checkbox next to <h1> element
Insert new controls into a form via SQL INSERT INTO
dependent constraints
How to extract individual elements out of a long string.
Error when running "Set-ReceiveConnector" on my exchange 2007 server.
Holiday Table: REDUX
How to select items in field up to a certain character
Class extending abstract class is not getting instantiated