Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use IN operator with parameter
Message
 
 
To
04/02/2003 13:36:00
Gary Otte
California Youth Authority
Sacramento, California, United States
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00748978
Message ID:
00748984
Views:
24
This message has been marked as the solution to the initial question of the thread.
In SQL 2000 you can use XML. See Re: Selecting records based on cursor values Message #690890 for sample code.

>Trying to create a stored procedure to accomplish something like:
>SELECT * FROM TABLE WHERE CITY IN (@CITIES)
>where @CITIES is a parameter containing a list of cities: eg, 'Sacramento', 'Placerville', 'San Francisco'
>
>Any suggestions?
>
>TIA,
>Gary
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform