为什么总是说”INSERT INTO 语句的语法错误。“
<%
Response.Expires=0
set conn=server.createobject("adodb.connection")
set rs=server.createobject("adodb.Recordset")
conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath("a.mdb") & ";Persist Security Info=False"
%>
<%
u_name=request.form("u_name")
u_sex=request.form("u_sex")
conn.execute "insert into user(u_name,u_sex) values('"& u_name &"','"& u_sex &"')"
response.write "成功!"
%>
为什么总是说”INSERT INTO 语句的语法错误。“