I have a comma separated numbers like '46,95,44' which is the output obtained from GROUP_CONCAT
select GROUP_CONCAT (prodid) from tablename where condition;
I want to convert this to integer such that i can use this as the input to the "in" operation
select * from table2 where prodid in
(
select GROUP_CONCAT (prodid) from tablename where condition
);
The above query results only base on the first number in the comma separated list . How to convert the list in to integer
output : 46,95,44