Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you compare dates
Message
 
To
04/03/2010 09:45:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01452456
Message ID:
01452499
Views:
50
>OH thanks but i meant table name not Table and...i was going to use a cursor so ill change to _tally.(reccount) cant count cursors?
>
RECCOUNT() returns the number of records in the actual table. The problem, when using cursors, is that VFP may optimize the SELECT by providing the result as a filtered view of the actual source table. When VFP does this then RECCOUNT() returns the actual number of records in the underlying table and not the number of record that meeting the filter condition while _TALLY always returns the number of record that met your where and having clauses regardless as to whether VFP provided a filtered view as the result. So that depending on _TALLY will always give you what you want while using RECCOUNT() may not give you what you want under certain conditions. The purpose of _TALLY is to tell you how many records the SELECT returned.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform