c#数据库报错
{
string strid2 = Convert.ToString(dataGridView1.CurrentCell.RowIndex);
string sql = string.Format(@"update Customer set CustomerCompanyName='{0}',CustomerName='{1}',CustomerTitle='{2}',CustomerAddress='{3}',CustomerPostalcode='{4}',CustomerIphone='{5}',telephone={6},where CustomerID ='{7}'"
, value[1], value[2], value[3], value[4], value[5], value[6], Convert.ToInt32(value[7]), strid2);
int n = DBHelper.ExecuteNonQuery(sql);
if (n > 0)
{
MessageBox.Show("修改成功");
}
else
{
MessageBox.Show("修改失败");
}
实在看不出来 大家可以帮我看看吗