title: How to split comma separated text in MySQL stored procedure
body: <p>How to split comma separated text (list of IDs) in MySQL stored procedure to use result in SQL "IN" statement.</p>
  
  <pre><code>SELECT * FROM table WHERE table.id IN (splitStringFunction(commaSeparatedData, ','));
  </code></pre>