',' 附近有语法错误.
protectedvoidButton1_Click(objectsender,EventArgse){stringsql="insertintodbo.tb_Appli...
protected void Button1_Click(object sender, EventArgs e)
{
string sql = "insert into dbo.tb_Applicant(passed,passed2,refuse) values( '" + shifou.Text + "','" + qian.Text + "','" +jujue.Text + "')";
SqlConnection conn = new SqlConnection("server=.;database=db_ClassManage;user id=sa;pwd=111111");
conn.Open();
SqlCommand com = new SqlCommand(sql, conn);
com.ExecuteNonQuery();
conn.Close();
}
}
麻烦了 谢谢 展开
{
string sql = "insert into dbo.tb_Applicant(passed,passed2,refuse) values( '" + shifou.Text + "','" + qian.Text + "','" +jujue.Text + "')";
SqlConnection conn = new SqlConnection("server=.;database=db_ClassManage;user id=sa;pwd=111111");
conn.Open();
SqlCommand com = new SqlCommand(sql, conn);
com.ExecuteNonQuery();
conn.Close();
}
}
麻烦了 谢谢 展开
2015-06-03 · 百度知道合伙人官方认证企业
关注
展开全部
dbo.tb_Applicant(passed,passed2,refuse) 中间的逗号是中文的 改成英文逗号
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询