如何合并两个表的数据
问题描述:
我已经拿了两张牌并使用了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.