union是兩個查詢結果的並集,可是去掉重複的數據。
union all是兩個查詢結果的並集。
因爲union比union all多一步操做,所以效率上會有所下降。 另外,union會對查詢結果作排序。