PDA

View Full Version : Possible to extract source tables from SELECT * query ?



BillGates
19th October 2011, 17:20
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.mysql-fetch-field.php]