rst.locktype = adLockOptimistic
rst.open "select * from table1 "
if not rst.eof then
rst.movelast
end if
rst.addnew
rst("column1") = ....
rst("cloumn2") = ....
rst("cloumn3") = ....
rst.updatebatch
.
.
rst.open "select * from table1 "
if not rst.eof then
rst.movelast
end if
rst.addnew
rst("column1") = ....
rst("cloumn2") = ....
rst("cloumn3") = ....
rst.updatebatch
.
.
数据库里的记录,一般不用管他的物理位置,
如果经常有查找记录的要求的话,可以建立一个或多个索引来加快查找速度在你要引用记录集的时候,用Order By关键字指定输出的排序情况
还可以用RecordSet的Sort属性来动态排序