ASP高手,求助

来源:百度知道 编辑:UC知道 时间:2024/06/06 01:01:54
我用的ACCESS,在增加记录的时候浏览器说小旋风ASP服务器提示conn.Execute(sql)这一行出错,请问是什么原因呢?

原文如下
<!-- #include file="include/conn.asp" -->
<% set rs=server.CreateObject("adodb.recordset")
sql="insert into orders (ip,pump,number,q,h,p,v,jiezhi,tem,density,visc,npsh,pre1,seal,seal_flushing,cz,other,name,company,mobile,tell,address,fax,email,www) values ('"&ip&"','"&pump&"','"&number&"','"&q&"','"&h&"','"&p&"','"&v&"','"&jiezhi&"','"&tem&"','"&density&"','"&visc&"','"&npsh&"','"&pre1&"','"&seal&"','"&seal_flushing&"','"&cz&"','"&other&"','"&name&"','"&company&"','"&mobile&"','"&

请检查你新建的内容分字段是否为数字或日期

如果是请不要使用''

number我想这个是数字吧。把'"&number&"'改成"&number&"

全都要这样

可加我的QQ我来帮你解决。我的账号就是我的QQ

这么多字段哦,看得我都眼花了。只要sql=""没有错,conn.Execute(sql)这句就没有错。你检查下sql=""这句看。

建库的时候最好不要建太多的字段!内分开而又不耽误操作的就分开!实在不行在建一起: