Jump to content

Acceste Sorguyu Kişiye Göre Yapma


yakup8141
 Share

Recommended Posts

 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 :)

Link to comment
Share on other sites

  • Editor

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...