六狼论坛's Archiver
首页
›
DB2
› DB2 Union,Union All,Intersect,expect
sue
发表于 2013-1-13 18:52:45
DB2 Union,Union All,Intersect,expect
A,B代表select的结果集
A Union B 结果集中包含A和B中所有的结果集
A intersect B 结果集中包含A和B中共有的结果集
A expect B 结果集中包含A中不包含的结果集
Union 相较 Union All 有一个内部的DISTINCT 语句
页:
[1]
查看完整版本:
DB2 Union,Union All,Intersect,expect