I know very little about VFP but I've been tasked with making some data alterations to a fairly large table. When running standard SQL update commands in the command window, VFP claims records are updating but they never change.
I tried this:
UPDATE selections ;
SET selections.gender = "FEMALE" ;
WHERE selections.gender = "F"
And VFP reported it had updated 4221674 records (the expected number) in about ten seconds. But when I re-queried the table, the gender field had not changed.
Just in case this was some anomaly based on the fact I was attempting to update the field I was filtering on, I tried this:
UPDATE selections ;
SET selections.gender = "FEMALE" ;
WHERE Urn = "946000001484066"
Which reported as having updated 1 record but changed nothing.
What am I doing wrong? Is there some sort of post-command process I need to invoke, like there is when you mark records for deletion and then have the actual delete step?
EDIT: This ...
REPLACE ALL gender WITH "FEMALE" for gender = "F"
Has the same effect - it says it's replaced 4 million records, but the data doesn't seem to change.
I have discovered that I cannot seem to add fields to the table either, which suggests some kind of lock. But I can't see any related setting.