it is possible that nCount is different than the real rows in the database (this behaviour is described in the manual)
from the manual:
If the database supports returning the size of a query (see QSqlDriver::hasFeature()), the number of rows of the current query is returned. Otherwise, returns the number of rows currently cached on the client.
if there is a smarter way, depends on what you try to accomplish




Reply With Quote


Bookmarks