摘要:
是sql语句输入的错误错误语句为cmd.CommandText = "select count(*) from student where stuid = "+stuid+" and stupassword = "+stupassword+"";虽然这样的语句运行不会出错,但是当你在输入框输入的是字母时,提交时会提示sql语句发生错误修改方法为将每个传入的变量再分别加一个单引号即可例如cmd.CommandText = "select count(*) from student where stuid = '&quo 阅读全文
posted @ 2013-12-17 08:40
leehoo
阅读(222)
评论(0)
推荐(0)
浙公网安备 33010602011771号