Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Fastest Way to get Table Record Count |
Author |
Message |
Paul |
|
Group | : Members |
Posts | : 15 |
Joined | : 2006-07-26 |
|
Profile |
|
Posted : 2007-11-17 08:31:08 |
What is the fastest way to get the number of records from a table?
Thanks Tom,
Paul
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-11-18 21:23:33 |
QODBC would need to scan the whole table to get the record or row count. So you shouldn't do it if don't need to do it. If you must do it, run the query against the optimized table using nosync like this:
SELECT count(listid) as "Table Row Count" from Customer nosync
|
|
|
|
Paul |
|
Group | : Members |
Posts | : 15 |
Joined | : 2006-07-26 |
|
Profile |
|
Posted : 2007-11-19 12:52:55 |
Thanks Tom, I will try that method. |
|
|
|
|