Home  >  Article  >  Database  >  sqlserver未找到列

sqlserver未找到列

WBOY
WBOYOriginal
2016-06-07 15:33:331789browse

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]。

请问错在哪里了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn