In my code, I am passing a string variable('4,5,6') to my stored procedure which exploded from this string(4,5,6-Name). I am using IN clause in stored procedure and I know that IN clause accept ('4','5','6') or simply (4,5,6) this type of data but I am unable to use it in my stored procedure. please help me if there is any other way to achieve it.
CREATE DEFINER = 'root'@'localhost'
PROCEDURE kbm.report_site_transfer(IN siteid VARCHAR(50), IN datefrom VARCHAR (15), IN dateto VARCHAR (15))
SELECT
*
FROM
tbl_transfer
WHERE
tbl_transfer.siteNameID IN (siteid) AND (tbl_transfer.paymentDate BETWEEN datefrom AND dateto);
site_id