Possible Duplicates:
Parameterizing a SQL IN clause?
Is it possible to use query parameters to fill the IN keyword
Hi, I'm using WHERE IN in my SQL query as the user may need to enter multiple id's to show records for , seperated by commas. I have this at the moment:
WHERE Consignments.ID IN(@ID)
Where @ID will be the list of ID's seperated by commas. Problem is it works when I the parameter has one number - if there's more than one then it returns no rows. Any ideas?