I have two tables question and question_paper . in question_paper i have a column named question_ids .in question_ids-(text type) i stored the question table's id like 2,5,23,45,6,9 etc. now the problem is when i trying to fetch the data using
select * from question where id IN (select question_ids from question where id=1)
it passes the question_ids as a string type so it returns only first matched id's value.so, i need to change this query result as a number type is it possible in mysql or is there any function using i can change the type temporary.thanks in advanced.