PDA

View Full Version : How to show the output of SHOW ERRORS from qt application?



Ahmed Abdellatif
5th May 2018, 14:09
In MySQL workbench i tried the following :

SHOW ERRORS;
It agave me the errors in the last executed statement, how to execute the same statement from QT application?

Lesiok
6th May 2018, 08:38
Look at QSqlQuery::lastError and QSqlDatabase::lastError.