ASP+access不能插入 提示insert into 语法错误

来源:百度知道 编辑:UC知道 时间:2024/09/28 10:58:08
<!--#include file="conn.asp" -->
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<!--
table {
font-size: 9pt;
text-decoration: none;
border: 1px solid #000000;
}
-->
</style>
<table width="398" border="0" align="center" cellpadding="3" cellspacing="0">
<tr align="center" bgcolor="#006699">
<td width="384" height="20"><font color="#FFFFFF">员工管理系统</font></td>
</tr>
<tr align="center">
<td><%
name = trim(request.form("gonghao"))
sql="select * from reg where gonghao='"&name&"'"
set rs=db.execute(sql)

'----------------------------------------

missme = " '"&name&"','"&namea&"','"&bumen&"','"&buzhu&"','"&homepage&"','"&gongzi&"' "
name 前面有个 '
gongzi 后面也有个 '

values('"&missme&"')"

values('') 这里也有 重复了

''name,'namea',...... 会是这个样子的

你能一次性把这么多([gonghao],[name],[bumen],[buzhu],[homepage],[gongzi],) 转到一个'"&missme&"')" 里吗?..............