Results 1 to 1 of 1

Thread: Possible to extract source tables from SELECT * query ?

  1. #1
    Join Date
    Feb 2010
    Posts
    24
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Possible to extract source tables from SELECT * query ?

    Say you have an QSqlQuery("select * from t1 JOIN t2 ON t1.k=t2.k), is it possible to get the table name (t1 or t2)
    for each respective column in the result ? (col1 ->t1, colx->t2)?

    is this possible?
    [i want: http://php.net/manual/en/function.my...tch-field.php]
    Last edited by BillGates; 19th October 2011 at 16:42.

Similar Threads

  1. Sql select table query error
    By nagabathula in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2011, 11:12
  2. Error executing SELECT query with QSQLITE
    By garfield85 in forum Qt Programming
    Replies: 6
    Last Post: 25th May 2009, 18:05
  3. select query with like
    By ag.sitesh in forum Qt Programming
    Replies: 19
    Last Post: 14th April 2008, 05:28
  4. Unable to fetch data when searching through select query
    By sinha.ashish in forum Qt Programming
    Replies: 3
    Last Post: 10th April 2008, 14:06
  5. Select query using mysql for searching
    By sinha.ashish in forum Qt Programming
    Replies: 4
    Last Post: 10th April 2008, 06:14

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.