Hi!
In my code I have several QSqlQuery statements, each has different name and are used for selecting data and updating that data. When I select data from a table using the select query I caould not update that same table using update query until I cleared that query using QsqlQuery::clear(). Why is that necessary?
Example code (not necessary working, just to see what I meant):
Why the q_update1 did not work until i put q_select1 there?Qt Code:
int i_word = q_select1.record().value("word"); q_select1.next(); q_select1.clear(); To copy to clipboard, switch view to plain text mode
Thanks!
Luka
Bookmarks