Fork me on GitHub

union和union all的区别

union和union all的区别是,union会自动压缩多个结果集合中的重复结果,而union all则将所有的结果全部显示出来,不管是不是重复。 如果我们需要将两个select语句的结果作为一个整体显示出来,我们就需要用到union或者union all关键字。union...

 

 
posted @ 2020-02-26 14:19  ZZZZW  阅读(201)  评论(0编辑  收藏  举报
AmazingCounters.com