Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reccount() for a select
Message
 
To
18/10/2005 18:31:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01060078
Message ID:
01060099
Views:
13
>>>How do I know how many records are in a Select cursor?
>>>
>>>If I do "Select * from Cities where city='HOUSTON" I get just a few records, but if I print Reccount() I get several hundred thousand (the entire database rcooord count).
>>
>>
>>Select *, COUNT(*) AS RcCount from Cities where city='HOUSTON INTO CURSOR cTest
>>? RecCount("CTest")
>>? CTest.RcCount
>>
>
>Note that if you omit the NOFILTER clause, reccount() may return all records from the table, not just the selected records.

I think, that when I put COUNT(*) in select VFP store the result in cursor not in filtered table?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform