データベースのメンバーシップテーブルからメールを取得するテキストボックスがあります。ユーザーは自分の電子メールを編集して、新しい電子メールを更新できます。私の質問は、古いメールを新しいメールに置き換える方法です。SQLのクエリは何ですか?
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Connection"].ConnectionString);
SqlCommand cmd = new SqlCommand("Insert into aspnet_membership("i dont know how whether to write all columns or only email);
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@email", Textbox2.Text);