I'm using the following query:
set @var = 'A,B,C';
select from tbl_one where find_in_set(col_x, @var);
However, I have another table, which has column values based on @var as follows:
id col_a
1 my.A
2 my.B
3 my.C
What I would like to do, is to use the same @var, but concatenate items in data set with 'my.' to be able to perform select using find_in_set(col_a, @var)
which will be analogous to
select * from table_two where col_a in ('my.A', 'my.B', 'my.C')
Is it possible and how to do it?