当前位置:网站首页>C # database reports errors. Let's have a look

C # database reports errors. Let's have a look

2022-06-23 06:32:00 CSDN Q & A

c# Database error

{

        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(" Modification successful "); } else { MessageBox.Show(" Modification failed "); }

img

img


I can't see it Can you help me see

原网站

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206161356218449.html