当前记录号和总记录数如何得到?(50分)

  • 主题发起人 主题发起人 xjlaokai2000
  • 开始时间 开始时间
X

xjlaokai2000

Unregistered / Unconfirmed
GUEST, unregistred user!
我想程序中得到当前记录号(即目前指针处于记录)和总记录号,如何得到?
 
当前记录号:recordcount
总记录号:select count(*) from table
 
table1.recno//当前记录号
table1.recordcount//总记录号(不一定准的)
最好用select count(*)from table
 
如果你使用table
当前记录号:table.recordno
总记录号:table.recordcount
 
在table中如果包含了索引字段
那么可用
table1.recno//取当前记录号
table1.recordcount
如果table字段中没有包含索引字段table1.recno=-1;
 
table1.recno
table1.recordcount

query1.recno
query1.recordcount
 
同意
风中流云
 
多人接受答案了。
 
后退
顶部