【发布时间】:2011-11-26 21:39:02
【问题描述】:
我有
- 表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
【问题讨论】: