Re: [sqlite] Re: Number of rows in a query result

2005-11-02 Thread John Stanton
No DB product can give you the number of rows in a result set until the search has been completed. The Sqlite callback and step approach gives the application the ability to process the query result as the query finds each row, avoiding the need for intermediate storage, a most efficient and

Re: [sqlite] Re: Number of rows in a query result

2005-11-02 Thread Paolo Vernazza
Edward Wilson wrote: What I was trying to say was: with other db products the drivers (or something somewhere) calculated the number of rows returned in a query automagicly. I have never had to do anything 'extra' to get the number of rows in a query other than resultset-object.rowcout -

Re: [sqlite] Re: Number of rows in a query result

2005-11-01 Thread Eric Bohlman
Edward Wilson wrote: What I was trying to say was: with other db products the drivers (or something somewhere) calculated the number of rows returned in a query automagicly. I have never had to do anything 'extra' to get the number of rows in a query other than resultset-object.rowcout -

Re: [sqlite] Re: Number of rows in a query result

2005-11-01 Thread Edward Wilson
What I was trying to say was: with other db products the drivers (or something somewhere) calculated the number of rows returned in a query automagicly. I have never had to do anything 'extra' to get the number of rows in a query other than resultset-object.rowcout - 'rowcout' being whatever

Re: [sqlite] Re: Number of rows in a query result

2005-10-31 Thread Puneet Kishor
On Oct 31, 2005, at 7:54 PM, Edward Wilson wrote: I simply count the number of elements in my record set thereby avoiding a double query to the database. Yes, exactly, I take for granted that the resultset is accumulated at the database level and not at the application level. sorry, I

Re: [sqlite] Re: Number of rows in a query result

2005-10-31 Thread Edward Wilson
>I simply count the number of elements in my record set >thereby avoiding a double query to the database. Yes, exactly, I take for granted that the resultset is accumulated at the database level and not at the application level. - ed --- Puneet Kishor <[EMAIL PROTECTED]> wrote: > > On Oct

Re: [sqlite] Re: Number of rows in a query result

2005-10-31 Thread Jay Sprenkle
I had this same problem some time ago. We were trying to make a virtual list box that could handle ANY number of items. The scroll bar is the wrinkle. You can't set it or size it without knowing the size of the list. My conclusion was this: A list of more than 100 or so items on screen is really

Re: [sqlite] Re: Number of rows in a query result

2005-10-28 Thread Puneet Kishor
On Oct 28, 2005, at 7:20 PM, SRS wrote: Edward Wilson wrote: The idea of issuing two selects is, well, a hack, and knowing how many records one has in a result-set is a powerful feature Are you needing a progress bar for the search (ie the query?) Or some action based on the result set?

Re: [sqlite] Re: Number of rows in a query result

2005-10-28 Thread SRS
Edward Wilson wrote: The idea of issuing two selects is, well, a hack, and knowing how many records one has in a result-set is a powerful feature Are you needing a progress bar for the search (ie the query?) Or some action based on the result set? If the later, get the result set as

Re: [sqlite] Re: Number of rows in a query result

2005-10-28 Thread Edward Wilson
Sqlite-Kernel-Hackers: This is really an important feature to have, I am surprised it's not already there. I too have had the same question but have just never asked. btw, is this by any chance on the feature road-map? The idea of issuing two selects is, well, a hack, and knowing how many

RE: [sqlite] Re: Number of rows in a query result

2005-10-28 Thread Eric Pankoke
- From: vidushi tandon [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 1:09 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Re: Number of rows in a query result hi all can anyone tell me how to port sqlite databases to the handheld devices rgds vidushi tandon --- Dennis

Re: [sqlite] Re: Number of rows in a query result

2005-10-27 Thread Dennis Cote
Puneet Kishor wrote: Igor Tandetnik wrote: Alfredo Cole <[EMAIL PROTECTED]> wrote: In order to update a progress bar, I need to know the total number of rows returned by a query, similar to MySQL's mysql_num_rows. Is there a function like that in the C API? I may have overlooked it, but

Re: [sqlite] Re: Number of rows in a query result

2005-10-27 Thread Puneet Kishor
Igor Tandetnik wrote: Alfredo Cole <[EMAIL PROTECTED]> wrote: In order to update a progress bar, I need to know the total number of rows returned by a query, similar to MySQL's mysql_num_rows. Is there a function like that in the C API? I may have overlooked it, but have not found it so far.

[sqlite] Re: Number of rows in a query result

2005-10-27 Thread Igor Tandetnik
Alfredo Cole <[EMAIL PROTECTED]> wrote: In order to update a progress bar, I need to know the total number of rows returned by a query, similar to MySQL's mysql_num_rows. Is there a function like that in the C API? I may have overlooked it, but have not found it so far. There is no such