i am using visual studio 2015,
update command using sql command
string sql = "UPDATE STU set PRESENTEDHOURS=PRESENTEDHOURS + 5,TOTALHOURS=TOTALHOURS + 5 WHERE DEPARTMENT='COMPUTER SCIENCE' AND COURSE='" + comboBox1.Text.ToString() + "' AND YEAR='" + comboBox2.Text.ToString() + "' AND SHIFT='" + comboBox3.Text.ToString() + "'";
but updated presented hours and total hours 10 values
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh ShahPosted Mar 13, 2017, 11:49 PM
Legent MadyPosted Mar 13, 2017, 11:39 PM
Nilesh ShahPosted Mar 13, 2017, 11:29 PM