Click here to Skip to main content
15,867,771 members
Articles / Programming Languages / SQL

Using comma separated value parameter strings in SQL IN clauses

Rate me:
Please Sign up or sign in to vote.
4.92/5 (23 votes)
7 May 2013CPOL2 min read 347.8K   273   24  
Passing a comma separated list of values to an SQL query is all very well, but you can't just use them in an "IN" clause. This helps.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions