Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where clause
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01006367
Message ID:
01006385
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform