这是我的代码,数据库不更新在qt.
QSqlQuery query;
query.prepare("UPDATE employee SET initials = :initials WHERE employee_id =:employee_id;");
query.bindValue("initials", "Karter");
query.bindValue(":employee_id", 5);
query.exec();
这是我的代码,数据库不更新在qt.
QSqlQuery query;
query.prepare("UPDATE employee SET initials = :initials WHERE employee_id =:employee_id;");
query.bindValue("initials", "Karter");
query.bindValue(":employee_id", 5);
query.exec();
1条答案
按热度按时间2izufjch1#
谢谢Adrian我漏了一个结肠