C# DataTable 创建临时表

/// <summary>
/// 创建临时表
/// </summary>
private DataTable CreatDT()
{
DataTable dtKM = new DataTable();
DataColumn dataColumn1 = new DataColumn("fid", typeof(string));
dtKM.Columns.Add(dataColumn1);

DataColumn dataColumn2 = new DataColumn("funit", typeof(string));
dtKM.Columns.Add(dataColumn2);

return dtKM;
}

你可能感兴趣的:(C++,c,C#)