Foxtable(狐表)用户栏目专家坐堂 → 迅速找到两个表之间的订单差异


  共有225人关注过本帖树形打印复制链接

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

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107703 积分:547842 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By: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.订单号)

 回到顶部