I want to update 4 Columns in a particular row in MySQL using C#.I want to update the
value entered in text boxes into the database if a particular field already .I am using the
following query.
string query = " update orderform set enrolmentexpected = " +
textBox2.Text + " stockonhand=" + textBox3.Text + " numberrequired = "
+ textBox4.Text + " where name = " + textBox1.Text + ";";
I am getting an exception that there is some error in mysql syntax but i am not able to
find such. Is my query right or there is some syntax mistake,and is there some way for
updating multiple columns