这是我执行写入的代码,请问怎么改写:
<!--#include file="conn.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Product where (id is null)"
rs.open sql,conn,1,3
rs.addnew
rs("Title")=trim(request.Form("Title"))
rs("Buy_price")=trim(request.Form("Buy_price"))
rs("Product_Gain")=trim(request.Form("Product_Gain"))
rs("Spec")=trim(request.Form("Spec"))
rs("Unit")=trim(request.Form("Unit"))
rs("Memo")=trim(request.Form("Memo"))
rs("Content")=trim(request.Form("Content"))
rs("DefaultPicUrl")=trim(request.Form("DefaultPicUrl"))
rs("UpdateTime")=trim(request.Form("UpdateTime"))
rs("Passed")=trim(request.Form("Passed"))
rs("Elite")=trim(request.Form("Elite"))
rs("BigClassName")=trim(request.Form("BigClassName"))
rs("SmallClassName")=trim(request.Form("SmallClassName"))
rs("Product_Id")=trim(request.Form("Product_Id"))
rs("DefaultPicList")=trim(request.Form("DefaultPicList"))
rs.update
rs.close
set rs=nothing
response.Write("<script language='javascript'>"&chr(13)&"alert('添加成功!');window.location.href='ProductAdd.asp';"&"</script>")
%>