Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update - Replace
Message
De
08/03/2006 17:49:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01102507
Message ID:
01102638
Vues:
19
>thanks Fabio
>
>If the Visual Foxpro choice works why is it not a good choice (perhaps cos is hidden)?
>
>Regards
>Geoff
>

The fact that something works it doesn't mean anything,
when a choice is done,
is not important to understand what can be done ( this is banal ),
it needs to understand what cannot be done with the choice ( this is not banal ).

With the MSSQL way you can use the new and the current value,
with VFP you cannot:
* @field1 is the new value, field1 is the current value
* example
UPDATE myTable
SET @field1 = field1 = someValue
,   field2 = COALESCE(field1,@field1) -- field2 become current field1 if it is not null, otherwise it become the new field1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform