-1
public void EtiketVerisiKaydiGuncelle()
{
try
{
string sorgu = "UPDATE EtiketVerisi SET Tarih='" + this.TARIH + "', NetKG='" + this.NETKG + "', MalinCinsi='" + this.MAL + "', Musteri='" + this.MUSTERI + "', Renk='" + this.RENK + "', PartiNo='" + this.PARTINO + "', RollNo='" + this.ROLLNO + "', Barkod='" + this.BARKOD + "', WHERE Kimlik=" + this.Kimlik;
if (bag.State == ConnectionState.Closed)
bag.Open();
komut.Connection = bag;
komut.CommandText = sorgu;
komut.ExecuteNonQuery();
MessageBox.Show("Kayıt Güncellendi");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
當我嘗試更新數據庫上的信息時,我收到的錯誤是Update語句中的語法錯誤。c#數據庫中的語法錯誤
你相信嗎? – 2014-10-29 12:49:05