This is the same issue as your earlier post in the other forum. QSqlQuery::exec() handles single statements.