QSqlQuery with sqlite , number of row affected
I'm useing Sqlite With SELECT query statment , i want to get how much row affected ,
i try to use
qDebug()<<query.numRowsAffected(); // i got 0 while theres 2 row affected qDebug()<<query.size(); // i got -1
You should check whether the driver has that feature.
Take a look here.
@SGaist i got false , anyway i found this method and it works
query.last(); numRows = query.at() + 1;