Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UPDATE FROM syntax
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134219
Message ID:
01135490
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
>>>>>Would this work:
>>>>>
>>>>>update myTable set myField = mycursor.myField from myTable inner join myCursor on
>>>>
>>>>Yes it'll work assuming that you provide correct JOIN conditions. :)
>>>
>>>Yes, it did <g> But it was a bit slow. Perhaps adding an index to temp cursor will help?
>>
>>How long does it take? How many records do you have in the cursor?
>
>~20+ sec. 42K

UPDATE-SQL locks/unlocks each record. Try to FLOCK the table and see how much it will speed the update. You can also try to create an index on the cursor but I wouldn't expect it to speed up update much.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform