Originally Posted by
SweetieCakes
So I can't do something like value("table1.column_name")...
Does these codes:
qry.exec("SELECT * FROM table1");
qry.next();
qDebug() << qry.record().value("table1.col_name").toString();
QSqlQuery qry;
qry.exec("SELECT * FROM table1");
qry.next();
qDebug() << qry.record().value("table1.col_name").toString();
To copy to clipboard, switch view to plain text mode
work for you?
When i tried that, the output from qDebug() is "". But, if i call
qDebug() << qry.record().value("col_name").toString();
qDebug() << qry.record().value("col_name").toString();
To copy to clipboard, switch view to plain text mode
the output is correct.
Bookmarks