Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPDATE FROM syntax
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01134219
Message ID:
01135490
Vues:
19
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform