我写的.net里的sql语句是这样的,为什么它判断条件只判断前面一个啊 5
cmd.CommandText="updateworksetdc="+int.Parse(TextBox1.Text.Trim())+",pc="+int.Parse(T...
cmd.CommandText = "update work set dc=" + int.Parse(TextBox1.Text.Trim()) + ", pc=" + int.Parse(TextBox2.Text.Trim()) + " ,jl=" + int.Parse(TextBox3.Text.Trim()) + ",sjyd=" + int.Parse(TextBox4.Text.Trim()) + " where time='" + DateTime.Parse(TextBox16.Text) + "' and dw='" + DropDownList1.Text.Trim() + "'";
int a = Convert.ToInt32(cmd.ExecuteNonQuery()); 展开
int a = Convert.ToInt32(cmd.ExecuteNonQuery()); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询