在sql查询中设置参数时出错
string cs = ConfigurationManager.ConnectionStrings["conString"].ConnectionString.ToString();
OdbcConnection con = new OdbcConnection(cs);
OdbcCommand cmd = new OdbcCommand("select CustomerID, LastName, FirstName from Customers.Customer.Customer_Details where CustomerID = @ID", con);
con.Open();
cmd.Parameters.AddWithValue("@ID", Convert.ToInt32(txtID.Text));
OdbcDataReader reader = cmd.ExecuteReader();