Prepared statements work fine in general. Having a bit 'o difficulty with the syntax for using a variable in the IN portion of a WHERE clause. Works great with a single value, but not more than one.. i.e.
SET @list = "2";
PREPARE my_stmt FROM 'SELECT * FROM <table> WHERE my_id in (?)'
EXECUTE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.