Union与Union All的区别

表1
A
B
C
表2
A
C
D


SQL codeselet * from 表1 union selet * from 表2


结果
A
B
C
D


SQL codeselet * from 表1 union all selet * from 表2


结果
A
B
C
A
C
D
posted @ 2009-11-16 22:18  桔子湖  阅读(254)  评论(0编辑  收藏  举报