當我們在一個查詢中連接了多於2-3個表時,並且如果我們在所有表中有一個共同的列,那麼當我們在,時會有任何差異 指定所有表格中公共列的值。 爲前: select e.*
from emp e, dept d
where e.deptno = 10
and d.deptno = 10;
給定值的公共列中的一個,並加入與其他 爲前: select e.*
from emp e, dept d
我有列 date_1,date_2,date_3,
text_1,text_2,text_3.
我想編寫一個查詢來獲取 date_1 union date_2 union date_3 as date
and text_1 union text_2 union text_3 as text.
我可以聯合他們分開,但我怎麼一個表中的同一表的列加入他們?