- 表1:
country
,theOrderColumn1
- 表2:
country
,theOrderColumn2
我想加入這兩個SELECT語句DISTINCT country
:
SELECT DISTINCT `country` FROM `table1` ORDER BY `theOrderColumn1`
和
SELECT DISTINCT `country` FROM `table2` ORDER BY `theOrderColumn2`
例子:
table1 (country, theOrderColumn1): (uk, 1), (usa, 2)
table2 (country, theOrderColumn2): (france, 1), (uk, 2)
我想這樣的結果:
france
uk
usa
我編輯的問題,並解釋更多... – ali