I am getting clause like this #ff0000,'#000'. But the problem is this I have to pass there values to a stored procedure as parameter to get the color names based on this color codes.
Here is my stored procedure
@ColorCode NVARCHAR(150)
AS
BEGIN
SET NOCOUNT ON;
SELECT *
FROM color
WHERE code IN (@ColorCode)
I want to pass these value for the IN
clause, using a parameter. How can I do this?
Please suggest