Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:迅速找到两个表之间的订单差异

1楼
Hareen 发表于:2024/6/2 10:38:00
狐表里面,有没有什么高级牛逼的代码,可以迅速的查找到两个表之间不同的订单号呢!A表有100万个订单号,B表有101万个订单号,怎么能把不同的1万个订单号筛选出来呢
2楼
有点蓝 发表于:2024/6/2 20:48:00
用sql,类似:

select 订单号  from {A表} as a  where not exists(select 订单号 from {B表} as b where a.订单号=b.订单号) union select 订单号  from {B表} as a  where not exists(select 订单号 from {A表} as b where a.订单号=b.订单号)
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01563 s, 2 queries.