shangrilla
Programmer
Hi:
I am appending data from one table to another table. Both tables have the same indexes, but each table is stored in a different location.
if not used('origTable')
use origTable
endif
if not used('appendTable')
use appendTable
endif
append from origTable where country = "USA"
Both origTable and appendTable have a field called "pkey" which should be unique.
Before appending data into appendTable I want to check if the particular pkey being appended already exists. Append data into appendTable only if pkey doesn't already exists.
Thanks
I am appending data from one table to another table. Both tables have the same indexes, but each table is stored in a different location.
if not used('origTable')
use origTable
endif
if not used('appendTable')
use appendTable
endif
append from origTable where country = "USA"
Both origTable and appendTable have a field called "pkey" which should be unique.
Before appending data into appendTable I want to check if the particular pkey being appended already exists. Append data into appendTable only if pkey doesn't already exists.
Thanks