sql - How to split comma separated text in MySQL stored procedure -


To use the result in the SQL "IN" statement, how to divide a separate text (list of IDs) with commas in the MySQL stored procedure

  SELECT * to table WHERE table.id IN (splitStringFunction (Comma Separated Data, ','));  

You can do it in two ways:

    < Li>

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -