当前位置:Gxlcms > mysql > sqlserver未找到列

sqlserver未找到列

时间:2021-07-01 10:21:17 帮助过:29人阅读

DataTable objDataTable = new DataTable(); DataColumn dc; dc = new DataColumn("CustomerCode"); objDataTable.Columns.Add(dc); ViewState["ERPSystemApplicationTargetlist"] = objDataTable; DataTableo = (DataTable)ViewState["ERPSystemApplication

DataTable objDataTable = new DataTable();
DataColumn dc;

dc = new DataColumn("CustomerCode");
objDataTable.Columns.Add(dc);

ViewState["ERPSystemApplicationTargetlist"] = objDataTable;

DataTable o = (DataTable)ViewState["ERPSystemApplicationTargetlist"];

string customerCode ="111";

o.Select("CustomerCode=" + customerCode)

报错:未找到列 [111]。

请问错在哪里了。

人气教程排行