Another one of those "there's got to be an elegant way of doing this" problems.
I want to SELECT some records from a table and INSERT them into another table. I could do it with SCAN as follows:
select table1
scan for field = rightvalue
insert into table2 (field1, ;
field2, ;
field3) ;
values (table1.fielda, ;
table1.fieldb, ;
table1.fieldc)
endscan
This just somehow doesn't seem smooth. Is there a better way? Can I somehow SELECT and INSERT in one statement?
TIA,
Shanachie
I want to SELECT some records from a table and INSERT them into another table. I could do it with SCAN as follows:
select table1
scan for field = rightvalue
insert into table2 (field1, ;
field2, ;
field3) ;
values (table1.fielda, ;
table1.fieldb, ;
table1.fieldc)
endscan
This just somehow doesn't seem smooth. Is there a better way? Can I somehow SELECT and INSERT in one statement?
TIA,
Shanachie