Hi Guys,
I have a simple store procedure which looks a bit like this:
@ProductCodes as varchar(25)
Select * from Market_Promotions
where Booths_ID in (@ProductCodes)
When I try to execute this and pass in a number of values I get an error message.
Can you please give me some guidance on the best approach to take using IN clause in a store procedure?
Cheers
I have a simple store procedure which looks a bit like this:
@ProductCodes as varchar(25)
Select * from Market_Promotions
where Booths_ID in (@ProductCodes)
When I try to execute this and pass in a number of values I get an error message.
Can you please give me some guidance on the best approach to take using IN clause in a store procedure?
Cheers