狂野飙车8 视频:基于查询的更新失败,因为没发现要更新的行。

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/11 00:50:51
access改成sql后 出现这样的问题:
代码如下:
set rsc=server.CreateObject("adodb.recordset")
sqlc="select * from newscata where id is null"
rsc.open sqlc,conn,1,3
rsc.addnew
rsc("title")= addtitle
rsc("newslevel") = alevel + 1
rsc("time") = now()
if arootid = "" then
rsc("rootid") = "*"
else
rsc("rootid") =arootid&",*"
end if
rsc.update

gid = rsc("id")
groot = rsc("rootid")
c_groot = replace(groot,"*",gid)
rsc("rootid") =c_groot
rsc.update
插入一条新记录后
再取出它的ID(ID是自动排列的)这样写怎么错了
用access数据库 是行的 改成sql 数据库就出现这样的错误!