不一样,union 是取两个查询语句不重复的记录,union all 是不管重复不重复,全部取。
效率上 union all更高,因为没有检测
union 和 union all 区别
猜你喜欢
转载自dong-shuai22-126-com.iteye.com/blog/1490777
今日推荐
周排行