SqlConnection con = new SqlConnection(@""); SqlCommand command = new SqlCommand(); command.Connection = con; command.CommandText = "update customer set jj=@a where jj=@d"; command.Parameters.AddWithValue("@d",name); command.Parameters.AddWithValue("@a",total); try { con.Open(); int i = command.ExecuteNonQuery(); if (i > 0) con.Close(); } catch(Exception ex) { throw(ex); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)