I have the following code:
set @a='city_name';
select place_names from table1 tbl1 inner join table2 tbl2
on tbl1.city_name = tbl2.city_name
Here I need to use variable @a with alias tbl1. Something like tbl1.@a and tbl2.@a.
How can I do this?
Thanks in advance.