I have this question about the MySqlParameter from the .NET connector.
I have this query:
SELECT * FROM table WHERE id IN (@parameter)
This doesn't work well for huge lists, but it is the only thing I have found that works if you have to pass a list in as a parameter.
Instead of
SELECT * FROM table WHERE id IN (@parameter)
You have to do this:
SELECT *
FROM table
WHERE INSTR(','+@parameter+',', ','+CAST(the_column AS CHAR) + ',')
Then you can pass in your list with string.Join(",", intArray)
It's a kludge, but it works.