I've been scouring various MySQL sites in the hope of finding something that will allow me to turn this:
var parameters = "a,b,c,d"; // (Could be any number of comma-delimited values)
Into this (assuming that my parameters are somehow becoming the values you see in the IN block):
SELECT * FROM mytable WHERE parametertype IN('a', 'b', 'c', 'd');
But I'm not having a great deal of success! The best site I've found has been: dev.mysql.com, which discusses the splitting of strings based on a delimiter (',' in my case) although it hasn't turned up any answers...
Does anyone know of a good way of splitting a comma-delimited string into a group of strings that can be used in this context?