I am a novice at this and I am trying to update the contents of one table with those of another. This is a multiple record update.
I am using a query similar to this:
update Articles;
set Articles.Path = (select Oldart.Path from Oldart where Oldart.id = Articles.id);
where exists (select Oldart.Path from Oldart where Oldart.id = Articles.id)
The goal is to update the "path" field in the new Articles table with the corresponding record in the old Old art table.
I keep getting an error message with the statement above (missing ")" in function name).
I have tried all kinds of variations to the statement above to no avail. Is this statement not valid? Is there another way to achieve the same goal?
I am using Visual FoxPro 6.0.
Thanks,
Edgar
I am using a query similar to this:
update Articles;
set Articles.Path = (select Oldart.Path from Oldart where Oldart.id = Articles.id);
where exists (select Oldart.Path from Oldart where Oldart.id = Articles.id)
The goal is to update the "path" field in the new Articles table with the corresponding record in the old Old art table.
I keep getting an error message with the statement above (missing ")" in function name).
I have tried all kinds of variations to the statement above to no avail. Is this statement not valid? Is there another way to achieve the same goal?
I am using Visual FoxPro 6.0.
Thanks,
Edgar