异常详细信息: System.Data.SqlClient.SqlException: ';' 附近有语法错误。
行72:行73:cm.Connection=co;行74:cm.ExecuteNonQuery();行75:行76:cm.CommandText="updatesurve...
行 72:
行 73: cm.Connection = co;
行 74: cm.ExecuteNonQuery();
行 75:
行 76: cm.CommandText = "update surveylist set question_number=question_number+1 where id=@surveyid6";
cm.CommandText = "insert into questionanswer(survey_id;questionid,answer1,answer2,answer3,answer4) values(@survey_id,@questionid,@answer1,@answer2,@answer3,@answer4)";
cm.Parameters.Clear();
cm.Parameters.AddWithValue("@survey_id", Session["surveyid"]);
cm.Parameters.AddWithValue("@questionid", Session["questionid"]);
cm.Parameters.AddWithValue("@answer1", 0);
cm.Parameters.AddWithValue("@answer2", 0);
cm.Parameters.AddWithValue("@answer3", 0);
cm.Parameters.AddWithValue("@answer4", 0);
cm.Connection = co;
cm.ExecuteNonQuery();
急急急!跪求! 展开
行 73: cm.Connection = co;
行 74: cm.ExecuteNonQuery();
行 75:
行 76: cm.CommandText = "update surveylist set question_number=question_number+1 where id=@surveyid6";
cm.CommandText = "insert into questionanswer(survey_id;questionid,answer1,answer2,answer3,answer4) values(@survey_id,@questionid,@answer1,@answer2,@answer3,@answer4)";
cm.Parameters.Clear();
cm.Parameters.AddWithValue("@survey_id", Session["surveyid"]);
cm.Parameters.AddWithValue("@questionid", Session["questionid"]);
cm.Parameters.AddWithValue("@answer1", 0);
cm.Parameters.AddWithValue("@answer2", 0);
cm.Parameters.AddWithValue("@answer3", 0);
cm.Parameters.AddWithValue("@answer4", 0);
cm.Connection = co;
cm.ExecuteNonQuery();
急急急!跪求! 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询