首页 > 其他 > 详细

except 和 intersect 的用法

时间:2020-08-25 11:23:28      阅读:65      评论:0      收藏:0      [点我收藏+]
--查询排除 factory = ‘A‘ 的结果集
select * from production where department = 1组
except
select * from production where factory = A

--查询排除 factory = ‘A‘ and department = ‘1组‘ 的结果集
select * from production where department = 1组
intersect
select * from production where factory = A

 

 

except 和 intersect 的用法

原文:https://www.cnblogs.com/LittleBai/p/13558348.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!