table one
+-----+--------+--------+
|date |index |idOne |
|-----+--------|--------+
| | | |
table two
+-----+--------+--------+
|date | index | idTwo |
|-----+--------|--------+
| | | |
query result where index = "5"
+---------+--------+--------+----------+
|date | index | id | idType |
|---------+--------|--------+----------+
|10/10/91 | 5 | 1 | One |
|10/11/91 | 5 | 2 | One |
|10/12/91 | 5 | 1 | Two |
这些是相关问题但不一样:
答案 0 :(得分:4)
您可以使用http://www.test.com/ENTERSOMETHINGHERE/html/stuff/
运算符加入这两个查询,并通过选择文字添加union all
列:
idType