Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Posts
    37

    Lightbulb total number of records in a sqlite3 table?

    How can I determine the total number of records in a sqlite3 table?
    thanx

  2. #2
    Join Date
    May 2006
    Posts
    1,443
    take a look at this page about SELECT COUNT

  3. #3
    Join Date
    Aug 2009
    Posts
    37
    how to make it in sqlite3 plugin.?

  4. #4
    Join Date
    May 2006
    Posts
    1,443
    Code:
    Row = Query("SELECT COUNT(*) AS TotalRecords FROM table_name")
    
    total = Row.TotalRecords
    Query = the function that executes select query
    Row = the fetched record-set (single row)

    Row.TotalRecords = in above query we assign total records to an alias called 'TotalRecords'
    so it becomes the first column name

    and the table_name is the name of table you want count records of

  5. #5
    Join Date
    Aug 2009
    Posts
    37
    thanks retest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts