I am having common field in ten tables with different field name. How should i get that using mysql
Posted
by Fero
on Stack Overflow
See other posts from Stack Overflow
or by Fero
Published on 2010-04-06T07:21:22Z
Indexed on
2010/04/06
7:33 UTC
Read the original article
Hit count: 185
mysql
Hi all,
I am having a common field in ten tables with different field name.
example:
table1:
t1_id t1_location
1 india
2 china
3 america
table2:
t2_id t2_location
4 london
5 australia
6 america
Now my o/p should be:
location
india
china
america
london
australia
How should i get that using mysql query.
thanks in advance
© Stack Overflow or respective owner