Try using the prepare and bindValue methods of QSqlQuery.
qry.prepare("SELECT Minia, Format FROM Dane where Id=:id");
qry.bindValue(":id",id);
QSqlQuery qry;
qry.prepare("SELECT Minia, Format FROM Dane where Id=:id");
qry.bindValue(":id",id);
To copy to clipboard, switch view to plain text mode
sorry wrong answer.
I can't think of anything that would preform the auto incrementation You would like to achieve. I always end up writing it by my self selecting the maximal value and incrementing it manually..
Bookmarks