string Nums = "5,8";
select * from tbl where Num in (5,8)
cmd.commandtext = "select * from tbl where Num in (" + Nums + ")"; // where 'Nums' is variable having list of selected numbers separated by comma
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)