C++ (Qt) s_query="update same_table set sval=:sval where id=:id"; query->prepare(s_query); query->bindValue(":id",number_id); query->bindValue(":sval",text); if(!query->exec()) { QMessageBox::information(0,"",query->lastError().text()); }