Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally updating fields
Message
De
12/10/2016 08:01:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/10/2016 07:28:36
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 SP2
Database:
MS SQL Server
Divers
Thread ID:
01641827
Message ID:
01641850
Vues:
47
>>>I think I should be able to use IIF() to update only when the parameter passed in is not null.
>>
>>You can build the update statement based on the new values, and simply not include those which are null or empty.
>
>Thanks, but that's what I wanted to avoid. Using one statement with the IIF() does exactly what I want.

The example statement had no ";" at the end of line, so I assumed this was what you were sending to the server.

One iif() per field? The amount of checking is pretty much the same, just fewer lines.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform