Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace Value
Message
De
24/09/2005 12:16:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/09/2005 01:02:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01052315
Message ID:
01052716
Vues:
7
>Dear Sir,
>
>Please write some codes to fulfill the purpose.
>
>Thanks in advance

For example, in one case you indicated the combination 9-2, and you wanted to change this to 9-7.

You can use:
replace Field2 with 7 for Field1 = 9 and Field2 = 2
or, using SQL syntax:
update MyTable set Field2 = 7 where Field1 = 9 and Field2 = 2
You have to be careful with the SQL UPDATE syntax - just like with the SQL DELETE syntax: if you forget the WHERE clause, all records will be replaced or deleted!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform