I have a query with a where clause that looks like:
WHERE field IN ( 1, 2, 3 )
Is possible to parametrize this so it looks something like:
WHERE field in ( :list )?
How do you create the :list parameter, assuming it’s a list of ints, that could be anywhere from 1 to 10 ints?
ASP.net, webforms if that makes a difference.
Same answer as SQL Server, already asked here: Parameterize an SQL IN clause