ASP+sql问题!!!!!!!!!!!

来源:百度知道 编辑:UC知道 时间:2024/05/23 02:17:47
老是提示Microsoft OLE DB Provider for SQL Server (0x80040E14)
第 1 行: ')' 附近有语法错误。
我检查了N篇,始终不知道道理哪儿没写对,我前面有个页面也是这样写的,只是参数和列少了一些而已,我直接复制过来改的,不知道哪儿改错了!

sqlgr="insert into teacher ([userid],[idcard],[realname],[sex],[pwd],[birthday],[lianxitel],[oskey],[email],) values ('"&request.Form("studentid")&"','"&request.Form("useridcard")&"','"&request.Form("xingming")&"','"&request.Form("usersex")&"','"&request.Form("userpwd")&"','"&request.Form("userchushenriqi")&"','"request.Form("usergerenlianxi")&"','"&p&"','"&request.Form("useremail")&"')"
不用INSERT那用什么语句?麻烦讲一下 谢谢
批插入的语句语法是怎么样的?

values前面的括号前多了一个逗号
sqlgr="insert into teacher ([userid],[idcard],[realname],[sex],[pwd],[birthday],[lianxitel],[oskey],[email],)把逗号去掉 呵呵


rs.addnew
rs("userid")=request.form("userid")
rs.updata
这样的。

用insert太麻烦了,可读性差,也不容易改错