Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QMYSQL equivalent of MYSQL source function
darthczyz last edited by
Just wondering if anyone has had any success using the mysql source or . function with in Qt. I'm trying to do:
But that is giving me a QMYSQL: Unable to execute query error. Same when I use . Is that not supported by QMYSQL? Any good workarounds?
goetz last edited by
There is no built-in method for this. You will have to read the file yourself into a QString and pass that to the prepare method of a QSqlQuery.