yakup8141 Posted May 22, 2013 Share Posted May 22, 2013 komut.CommandText = ("INSERT INTO sinifbilgisi(matematik_1yazılı,matematik_2yazılı,maetmatik_2sözlü) VALUES ('" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "where AD=""') "); ad yazan yere mesea veri tabanındaki ahmet isimli kişinin notlarını değiştirecek 25 kişi içerisinden sadece ahmetin notunu değiştirecek o kodun devamını getiremedimde yardım edebilirmisiniz teşekkür ederim şimdiden :) Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 22, 2013 Editor Share Posted May 22, 2013 komut.CommandText = ("INSERT INTO sinifbilgisi(matematik_1yazılı,matematik_2yazılı,maetmatik_2sözlü) VALUES ('" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "where AD=ahmet) "); isime göre değilde id ye göre gitsen daha iyi olur iki ahmet varsa ne olacak :D Quote Link to comment Share on other sites More sharing options...
Akozdem!R Posted May 22, 2013 Share Posted May 22, 2013 Veritabanında herhangi bir ID belirleyin. Sonuçta bu işlemi yapacak olan kişi, bu sorgu neticesinde ismi de değiştirebilir olmalıdır. ID yi otomatik sayı yapın. ve bu komutu çalıştırmadan önce ID yi herhangi bir değişkene atayın. where ile de bu ID i karşılaştırın. Kolay gelsin. Quote Link to comment Share on other sites More sharing options...
yakup8141 Posted May 22, 2013 Author Share Posted May 22, 2013 eyww saolun :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.