Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Update
Message
 
 
To
05/01/2005 19:27:09
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974570
Message ID:
00974571
Views:
28
>I wish to update a table using the SQL Update command. I wish to replace a field in the table with a value located in a temporary cursor:
>
>UPDATE LiveTable SET f02AID = temp.tm_new_aid;
> WHERE LiveTable.f02AID in select(temp.f02AID from temp where; temp.tm_chg = "Y")
>
>Table temp contains the old ID (f02AID) and the new ID (tm_new_aid)
>
>This doesn't seem to work as I get a number of changes that result in a new ID of blank.
>
>Anyone have a technique for this?

You can do such UPDATE in VFP9 with FROM clause. In previous versions you can use kludgy way as shown in Re: GATHER NAME vs APPEND Message #914947
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform