以下是我的数据表:
表名:jay
RollNo Name Age
58 Jay 18
表名:ren
RollNo Name Age
23 Renish 20
如何提取以下形式的数据:
RollNo Name Age
58 Jay 18
23 Renish 20
请帮助我。
最佳答案
使用union
UNION is used to combine the result from multiple SELECT statements into a single result set.
select * from jay
UNION
select * from Ren
SQl FIDDLE
输出
关于mysql - 以附加的形式从两个表中提取数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21950759/