Stored procedure ItemList
has a string parameter for WHERE
clause IN
filter:
WHERE Item IN (@FilterStr)
It works, if the filter is single item only.
EXEC ItemList 'ABC'
How to call the stored procedure, if multiple items need to be passed for the below SQL WHERE
clause?
WHERE Item IN ('ABC', 'DEF', 'HJK')
Cannot pass it by 'ABC','DEF','HJK'. Because comma will be parameter separator. Thanks.