これを更新しようとすると文法エラーが発生するのはなぜですか?C#OleDb SQL Update構文エラー
string editComp = "UPDATE Competitive SET (PartNumber, Location, Description) values (@Edpart, @Edlocation, @Eddescrip) where SerialNumber = @serial";
command.CommandText = editComp;
command.Parameters.Add("@serial", OleDbType.VarChar).Value = Serialtext.Text;
command.Parameters.Add("@Edpart", OleDbType.VarChar).Value = Parttext.Text;
command.Parameters.Add("@Edlocation", OleDbType.VarChar).Value = cboLocation.Text;
command.Parameters.Add("@Eddescrip", OleDbType.VarChar).Value = Descriptiontext.Text;
command.ExecuteNonQuery();
MessageBox.Show("Successfully Updated");
で
@Edlocation
、@Eddescrip
と@Edpart
を交換してみた後に動作していない場合は? – SLaksMicrosoft Access – CamlCase