|
<% set rs=Server.CreateObject("adodb.recordset")
sql = "select * from [order] where orderNO='"&request("orderNO")&"'"
rs.Open sql,conn,1,1
if rs.eof then
conn.execute ("INSERT INTO [order] (orderNO,customername,sourceType,customerTele,installaddress,customerFaxn,webflag,OrderGuid) VALUES ('"& Request("orderNO") &"','" & Request("customername") & "','"& Request("sourceType") &"','"& Request("customerTele") &"','" & Request("installaddress") & "','"& Request("customerFax") &"',1," & newid() & ")" )
response.write "添加成功"
else
response.write("记录已存在!")
end if
%> |
|