General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
How to use IN operator with parameter
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only