Article ID: 131306
Article Last Modified on 2/15/2000
USE sourcetable SELECT 0 USE desttable REPLACE desttable.genfield1 WITH sourcetable.genfield2You can also move information within a record in the same way. For example:
REPLACE genfield1 WITH genfield2The INSERT SQL command has also been enhanced, making it possible to add a new record to a table and place information in a general field in the table when the information is contained in a general field of a different table. For example:
USE sourcetable SELECT 0 USE desttable INSERT INTO desttable ( genfield1 ) VALUES ( sourcetable.genfield2 )The source table must be open; the general field is inserted from the current record in that source table.
USE sourcetable
SELECT 0
USE desttable
UPDATE desttable ;
SET genfield1 = sourcetable.genfield2 ;
WHERE <filter expression>
The source table must be open; the general field is inserted from the
current record in that source table.
Additional query words: VFoxWin
Keywords: kbcode KB131306