如何合并两个表的数据 [英] How to merge two table's data

查看:61
本文介绍了如何合并两个表的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我已经拿了两张牌并使用了dt.Merge(dt1);合并表。表格列合并正常,但第二个表格中的值不在第一个表格旁边,值在第一个表格的最后一行之后。



谢谢和问候

mahesh

Hi,

I have taken two tables and used "dt.Merge(dt1);" to merge the tables. The tables columns are merging fine but the values in the second table are not coming beside the first table, the values are coming after the last row of first table.

Thanks&Regards
mahesh

推荐答案

在datatable1中添加新列



数据表2中的行,获取公共列和值,并使用值更新现有的数据表新列。
Add new columns in datatable1

And for each row in datatable 2, get the common column and values and update the existing datatable new columns with the values.


这篇关于如何合并两个表的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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