我想象中的原子结构200:同时向数据库一个表中写N条数据??

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 05:49:52
<%
sub sendemailsub(inputstr)
set conn=opendb("oabusy","conn","accessdsn")
on error resume next
conn.begintrans
numberdim=split(request("hidevalue"),"|")
for i=0 to ubound(numberdim)
if numberdim(i)<>"" then
sql="insert into SMS_SEND_NOW (GSM,SMS)"
sql=sql&"values('"&titleGSM&"','"&contentSMS&"')"
conn.execute(sql)
end if
next
if err.number<>0 then
conn.rollbacktrans
response.write("<script language=""javascript"">")
response.write("alert(""发送邮件未成功,请返回重试!"");")
response.write("history.go(-1);")
response.write("</script>")
response.end
else
conn.committrans
response.write("<center><font color=""#dd0000"">成功发送邮件!</font><br><br>")
end if
end sub
%>
用户名与用户名之间用| 分离,提交数据后数据库里应该是
ID GSM SMS
1 2 3
2 3 4 但是,现在提交数据后出现的问题是:
ID GSM SMS
1 23 3
2 23 4 就是|之间数据没有被分离!!
快来人呀! 天要黑了!