我有兩個類似的表,並想從兩個表中包含一個表中的結果,一個查詢得到的結果(行作爲串聯和順序與時間)從兩個表作爲一個表中選擇數據
MYTABLE1 :
time name Comment
-------------------------
45 asd testasd
49 gas testgas
50 has testhas
96 bag testbag
MyTable2:
time name Comment
-------------------------
48 hjasf bigasd
54 adg biggas
65 zxx bighas
115 cxx bobbag
131 xxb bobhas
結果:
time name Comment
-------------------------
45 asd testasd
48 hjasf bigasd
49 gas testgas
50 has testhas
54 adg biggas
65 zxx bighas
96 bag testbag
115 cxx bobbag
131 xxb bobhas
我嘗試這樣做,但不知道,我必須使用JOIN或UNION還是...?
我編輯的問題解決了,因爲我不能選擇接受低於15分鐘一個答案。 – Root125