Results 1 to 20 of 35

Thread: Multi Column selection from a Sqlite table

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2010
    Posts
    100
    Thanks
    38
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: Multi Column selection from a Sqlite table

    hello thank you for help sir.. Until here i knew, i din know how to access only the column names which i have selected this can vary every time.. so i can't give a fixed column names..
    SELECT column1, column2, columnX, columnY, columnZ FROM myDatabase LIMIT 2;
    i i have a QVector in which has all the selected column names are there, which i need to pass in place of the column name in the query..
    i don't know the syntax to use a QVector to give the column names instead of a fixed name.
    SELECT channelnames.at(i) FROM myDatabase LIMIT 2; // QVectorString channelnames;
    i don't know if this syntax is right.. what is the right way to do it sir.

    thank you
    Last edited by nagabathula; 24th December 2010 at 08:41.

Similar Threads

  1. Replies: 0
    Last Post: 5th October 2010, 07:50
  2. Replies: 0
    Last Post: 25th June 2008, 18:36
  3. Can a QListView support multi-column?
    By wesley in forum Qt Programming
    Replies: 3
    Last Post: 7th March 2008, 08:00
  4. QListWidget multi selection
    By user in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2008, 07:36
  5. Multi-selection Combo Box
    By EricF in forum Qt Programming
    Replies: 7
    Last Post: 7th November 2007, 07:15

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.