title: Incorrect Syntax near '='
body: <p>i watched a course and the teacher write this code and its worked for him but shows me this error..
  my CODE</p>
  <pre><code>private void button2_Click(object sender, EventArgs e){
   con.Open();
   SqlCommand cmd = new SqlCommand(&quot;update Admin set 
   username=@username.password=@password.Fullname=@Fullname&quot;)
   cmd.Parameters.AddWithValue(&quot;@username&quot;, textuser.Text);
   cmd.Parameters.AddWithValue(&quot;@password&quot;, textpassword.Text);
   cmd.Parameters.AddWithValue(&quot;@Fullname&quot;, textFullname.Text);
   cmd.Parameters.AddWithValue(&quot;@id&quot;, id);
   cmd.ExecuteNonQuery(); // Error In This Line...
   con.Close();
   MessageBox.Show(&quot;DELETED&quot;);
   upload_data_into_GridView_from_database();
  }
  </code></pre>