27 Nisan 2016 Çarşamba

There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.

 Sql Cümlemiz içerisinde Kayıt eklenecek kolon sayısı ile gönderilen veri sayısının eşit olmadığı durumlarda karşımıza gelen hata mesajıdır.

Ayrıca yaptığımız kodlama içerinde sql cümlemize parametre geçiyorsak ve bu parametreler içerisinde virgüllü (235,82) gibi bir değer varsa bu durumda aynı hataya sebep olmaktadır.
parametremizi c# için =>
Command.Parameters.AddWithValue("@Oran", SatisOrani);
Şeklinde yollarsak virgülün sebep olduğu hatayı ortadan kaldırmış oluruz.

İyi Çalışmalar


There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.

Hiç yorum yok:

Yorum Gönder