I want to exclude a variable number of users/id's from my results. Is there a way to pass a variable number of usernames/id's to the IN operator? Simplified code as follows: -
CREATE DEFINER=`root`@`localhost` PROCEDURE `myroutine`(@userids)
--possible process here--
BEGIN
SELECT * FROM mytable WHERE `myid` NOT IN (@useridsprocessed)
END