SQLServer数据集合的交、并、差三种集合运
摘要:
SQLServer2005通过intersect,union,except和三个关键字对应交、并、差三种集合运算他们的关系对应如下createtablet1 (aint)insertintot1select1unionselect2unionselect3createtablet2 (aint)insertintot2select3unionselect4unionselect5goselect*fromt1unionselect*fromt2go/* 求表并集12345*/select*fromt1unionallselect*fromt2go/*求表并集不过滤重复123345*/selec 阅读全文
posted @ 2014-01-10 09:13 riky1989 阅读(172) 评论(0) 推荐(0)