我想让id自动递增,但想在程序里实现,而不想直接把它设成自动编号类型,我这样写:
Set rs=Conn.Execute("select * from MyTable order by id")
if rs.bof and rs.eof then
id=1
else
rs.MoveLast
id=rs(id)+1
end if
运行提示出错:行集不支持反向提取
...全文
1116打赏收藏
紧急求助:怎样取表中最后一个id值?(id类型为int)
我想让id自动递增,但想在程序里实现,而不想直接把它设成自动编号类型,我这样写: Set rs=Conn.Execute("select * from MyTable order by id") if rs.bof and rs.eof then id=1 else rs.MoveLast id=rs(id)+1 end if 运行提示出错:行集不支持反向提取