如何利用DataTable.select方法取出两列数据,两列名为“PPI”和“TEM”,将取出的数据放入新的DataTable中

DataTable newDataTable = new DataTable();
newDataTable = oldDataTable.Clone();
DataRow[] foundRows = oldDataTable.select("该处表达式怎么写");
for (int i = 0; i < foundRows.Length; i++)
{
newDataTable .ImportRow((DataRow)foundRows[i]);
}

DataRow[] foundRows = oldDataTable.select("列明=‘PPI’ and 列明=‘TEM’");
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜