Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where clause
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
01006367
Message ID:
01006385
Vues:
27
>Is there an equivalent to VFP's inlist() command in C# for SQL Server?
>
>I want to issue a command like
>
>update orders set flag = 0 where inlist(ordernumber,25000,26789,2342)
>
>
>I'm not sure how to do this?

Paul,

The IN clause:
UPDATE Orders SET Flag = 0 WHERE OrderNumber IN (25000, 26789, 2342)
HTH,
Chad
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform