Ich kann nicht herausfinden, warum dies mir einen Syntaxfehler gibt, wenn ich versuche, dies zu aktualisieren?C# OleDb SQL Update Syntaxfehler
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");
ersetzt Welche Datenbank Sie verwenden? – SLaks
Microsoft Access – CamlCase