本文介绍了将数据表中的行插入另一个数据表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, 我有一个大数据表,对其进行操作以对其进行过滤. 筛选过程完成后,我需要将接受我的条件的行插入到新数据表中,以供下一步使用. 现在我在执行该操作的语法方面存在问题. 那么,有什么需要帮忙吗? 谢谢
Hi all, I have a big datatable which I make an operation on it to filter it. After the filteration process, I need the row which accept my condition to be inserted in to a new datatable to be used next. And now I have a problem with the syntax to do that. So, any help please? Thanks
推荐答案如果使用DataTable.Select过滤表,它将返回DataRow[] 以后,您可以使用 DataTable.ImportRow [ ^ ] If you are filtering your table with DataTable.Select, it will return the DataRow[] Later you can use DataTable.ImportRow[^] foreach (DataRow row in rowArray) { myDataTable.ImportRow(row); }
更多推荐
将数据表中的行插入另一个数据表中
发布评论