asp中准备插入多条记录,结果变成一条记录了!紧急求救
sqljl="select*fromkaohejilu"setrsjl=Server.CreateObject("adodb.recordset")rsjl.opensq...
sqljl="select * from kaohejilu "
set rsjl= Server.CreateObject("adodb.recordset")
rsjl.open sqljl,conn,1,3
if rsjl.bof and rsjl.eof then
rsjl.addnew
rsjl("userid")=id
rsjl("timuid")=timuid
rsjl("leibie")="kao"
rsjl("nianfen")=year(now)
rsjl("yuefen")=month(now)
rsjl("riqi")=day(now)
rsjl("xzfen")=xzfen
rsjl("beizhu")=beizhu
rsjl.update
else
rsjl("userid")=id
rsjl("timuid")=timuid
rsjl("leibie")="kao"
rsjl("nianfen")=year(now)
rsjl("yuefen")=month(now)
rsjl("riqi")=day(now)
rsjl("xzfen")=xzfen
rsjl("beizhu")=beizhu
rsjl.update
end if
rsjl.close
set rsjl=nothing 展开
set rsjl= Server.CreateObject("adodb.recordset")
rsjl.open sqljl,conn,1,3
if rsjl.bof and rsjl.eof then
rsjl.addnew
rsjl("userid")=id
rsjl("timuid")=timuid
rsjl("leibie")="kao"
rsjl("nianfen")=year(now)
rsjl("yuefen")=month(now)
rsjl("riqi")=day(now)
rsjl("xzfen")=xzfen
rsjl("beizhu")=beizhu
rsjl.update
else
rsjl("userid")=id
rsjl("timuid")=timuid
rsjl("leibie")="kao"
rsjl("nianfen")=year(now)
rsjl("yuefen")=month(now)
rsjl("riqi")=day(now)
rsjl("xzfen")=xzfen
rsjl("beizhu")=beizhu
rsjl.update
end if
rsjl.close
set rsjl=nothing 展开
1个回答
展开全部
sqljl="select * from kaohejilu "
set rsjl= Server.CreateObject("adodb.recordset")
rsjl.open sqljl,conn,1,3
rsjl.addnew
rsjl("userid")=id
rsjl("timuid")=timuid
rsjl("leibie")="kao"
rsjl("nianfen")=year(now)
rsjl("yuefen")=month(now)
rsjl("riqi")=day(now)
rsjl("xzfen")=xzfen
rsjl("beizhu")=beizhu
rsjl.update
rsjl.close
set rsjl=nothing
这样你的目的就达到了
set rsjl= Server.CreateObject("adodb.recordset")
rsjl.open sqljl,conn,1,3
rsjl.addnew
rsjl("userid")=id
rsjl("timuid")=timuid
rsjl("leibie")="kao"
rsjl("nianfen")=year(now)
rsjl("yuefen")=month(now)
rsjl("riqi")=day(now)
rsjl("xzfen")=xzfen
rsjl("beizhu")=beizhu
rsjl.update
rsjl.close
set rsjl=nothing
这样你的目的就达到了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询