Results 1 to 8 of 8

Thread: How To Get COUNT(*) out in the Query using Values(0)?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    12
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Smile Re: How To Get COUNT(*) out in the Query using Values(0)?

    Hi lni,

    I think it will be faster.
    But why query.seek( 0 ).

    Regards

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How To Get COUNT(*) out in the Query using Values(0)?

    Quote Originally Posted by Mr.QT View Post
    Hi lni,

    I think it will be faster.
    But why query.seek( 0 ).

    Regards
    I think seek( 0 ) is not necessary in this case, and toString() is not necessary either...

Similar Threads

  1. How to realize multi-threaded database query?
    By bangqianchen in forum Qt Programming
    Replies: 2
    Last Post: 14th November 2008, 07:15
  2. QTableWidget Sql Query 25.000 records
    By aekilic in forum Qt Programming
    Replies: 2
    Last Post: 12th August 2008, 14:54
  3. Problem with A SQLite Query
    By maveric in forum Qt Programming
    Replies: 1
    Last Post: 24th June 2008, 11:15
  4. Aborting a query set on a TableModel
    By Quid in forum Qt Programming
    Replies: 2
    Last Post: 5th July 2006, 22:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.