比较两个文件集中的记录 [英] compare records in two filesets

查看:71
本文介绍了比较两个文件集中的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有两个文件集,名为A和B.A中的记录是:

There are two filesets,named A and B.The records in A are:

1

2

3

B中的记录是:

2

3

4

那么,我怎样才能得到记录"4"来自文件集B.因为B的记录2和3都包含在A。中,B中包含但不包含在A中的记录是我想要的。

So,how can i get the record "4" from fileset B.Because B`s records 2 and 3 are contained in A .Namely,the records which are contained in B and do not contained in A are what i want.

怎么能我实现了这个目标吗?

How can i achieve this?

谢谢

推荐答案

使用加入()运算符来执行此操作。

Use the Join() operator to do this.

http://msdn.microsoft。 com / zh-CN / vcsharp / aa336746

http://msdn.microsoft.com/en-us/library/bb534650.aspx

有一个示例显示了带有测试版的示例中的简单连接。

There's an example that shows a simple join in the samples with the beta.

Ade


这篇关于比较两个文件集中的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆