I did, and still get the same error. I tried and insert statement like:
query.exec("INSERT INTO person(id,firstname,lastname) VALUES(2,'John','Smith')");
query.exec("INSERT INTO person(id,firstname,lastname) VALUES(2,'John','Smith')");
To copy to clipboard, switch view to plain text mode
and it works fine.
But when I try:
query.exec("SELECT id,firstname,lastname FROM person");
query.exec("SELECT id,firstname,lastname FROM person");
To copy to clipboard, switch view to plain text mode
I still get the error:
QMYSQL3: Unable to fetch data
I really need help on this.
Bookmarks