Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请任何人澄清,如何使用linq将一列数据复制到同一表中的另一列。
谢谢你,Siva Kumar goru。
您可以在没有 LINQ 的情况下简单地做到这一点(目的是查询数据,而不是修改)
foreach(DataRow row in table.Rows) row["AnotherColumn"] = row["OneColumn"];