title: How do make make a SQL Select statement using a CSV string as a conditional parameter in the "Where" clause?
body: <p>Below is an example of what I'm trying to do.</p>
  
  <pre><code>Declare @PersonIds varchar(500)
  Set @PersonIds = '1, 3, 5'
  
  Select PersonId, FirstName, LastName
  From   tblPerson
  Where  PersonId in @PersonIds
  </code></pre>
  
  <p>Thanks.</p>