Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Russian Roulette
Message
De
04/05/2005 16:01:41
 
 
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
Divers
Thread ID:
01010750
Message ID:
01011027
Vues:
19
>Where's revolver?
>
In the customer's hand :-)

>>A simple test in order to understand the VFP9's UPDATE.
>>
>>
>>CREATE CURSOR aaa ( f1 i , f2 i)
>>INSERT INTO AAA (F1,F2) VALUES (1,2)
>>INSERT INTO AAA (F1,F2) VALUES (3,4)
>>UPDATE AAA SET F1=X.F2,F2=X.F1 FROM AAA X
>>BROWSE
>>
>>CREATE CURSOR aaa ( f1 i , f2 i)
>>INSERT INTO AAA (F1,F2) VALUES (1,2)
>>INSERT INTO AAA (F1,F2) VALUES (3,4)
>>UPDATE AAA SET F1=X.F2,F2=X.F1 FROM AAA X WHERE X.F1=1
>>BROWSE
>>
>>CREATE CURSOR aaa ( f1 i , f2 i)
>>INSERT INTO AAA (F1,F2) VALUES (1,2)
>>INSERT INTO AAA (F1,F2) VALUES (3,4)
>>UPDATE AAA SET F1=X.F2,F2=X.F1 FROM AAA X WHERE X.F1=3
>>BROWSE
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform