Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » sqlite3 get number of occurrences
sqlite3 get number of occurrences [message #21134] Mon, 04 May 2009 17:18 Go to next message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
How can i get the number of occurrences of a database? thanks!

Sam
Re: sqlite3 get number of occurrences [message #21136 is a reply to message #21134] Mon, 04 May 2009 19:59 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I do not understand the question. Can you reformulate, please?

Mirek
Re: sqlite3 get number of occurrences [message #21146 is a reply to message #21134] Tue, 05 May 2009 10:12 Go to previous messageGo to next message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
Sure!

I need to have the total number of rows in my db, so, i need to count the total lines inserted. There is a way to have that number?

Sam
Re: sqlite3 get number of occurrences [message #21160 is a reply to message #21146] Wed, 06 May 2009 08:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
int n = SQL % Select(SqlCountRows()).From(MYTABLE);

Mirek
Re: sqlite3 get number of occurrences [message #21164 is a reply to message #21134] Wed, 06 May 2009 10:19 Go to previous messageGo to next message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
Thank you very much! there is in the documentation a page with this functionality?

Sam
Re: sqlite3 get number of occurrences [message #21165 is a reply to message #21164] Wed, 06 May 2009 10:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
http://www.ultimatepp.org/src$Sql$SqlExp$en-us.html

But of course, SQL knowledge is expected...

Mirek
Re: sqlite3 get number of occurrences [message #21172 is a reply to message #21165] Wed, 06 May 2009 14:21 Go to previous messageGo to next message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
I know SQL, I don't know when to use
SQL %
SQL *
SQL * ::

what are the difference between this syntax?
Re: sqlite3 get number of occurrences [message #21175 is a reply to message #21172] Wed, 06 May 2009 19:52 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Search the forum, this was discussed.

Mirek
Previous Topic: OrderBy Descending missing
Next Topic: OleDB Compile error in release 2008.1
Goto Forum:
  


Current Time: Wed Apr 24 06:14:35 CEST 2024

Total time taken to generate the page: 0.04430 seconds