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
展开
 我来答
dear156163
2012-04-02 · TA获得超过203个赞
知道小有建树答主
回答量:108
采纳率:0%
帮助的人:154万
展开全部
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

这样你的目的就达到了
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式