摘要:
分为union与union allunion 缺省在合并结果集后消除重复项,union all 指定在合并结果集后保留重复项, 打个比喻吧 比如A表的数据是 A{ 1,4,5,9} B{2,3,4,5}那我执行此语句 select * from A union select * from B 那结果是{1,2,3,4,5,9}如果执行select * from A union all select * from B 结果是{1,2,3,4,4,5,5,9} 阅读全文
posted @ 2012-05-24 17:58
呓语
阅读(254)
评论(0)
推荐(0)

浙公网安备 33010602011771号