Tquery 过滤后的记录数?(50分)

  • 主题发起人 主题发起人 tjaofeng
  • 开始时间 开始时间
T

tjaofeng

Unregistered / Unconfirmed
GUEST, unregistred user!
sqlserver2000
Tquery 加updatesql
onfiltered 或者filter后,recordcount为什么不变
怎么才能得到真正过滤出的记录数
 
的确是一个大bug,
我也没有办法,自己循环统计吧
 
i:=0;
while not query1.eof do
begin
i:=i+1;
next
end;
i就可以统计出来了
 
好!谢谢两位,我试一下
不知还有什么别的方法没有
 
Use RecordCount with care, because record counting can be a costly operation,
especially for SQL queries that return large result sets. Generally, an
application should only use RecordCount with Paradox and dBASE tables.
 
你的意思是说,如果记录非常多,那么对SQL查询来说,会取所有的纪录到本地,
才能统计记录数,所以可能是一个很费时间的操作,
 
多人接受答案了。
 
后退
顶部