I have some problems when using a select statement in the bindValue function
Locked
Unsolved
General and Desktop
-
wrote on 23 Apr 2019, 15:41 last edited by
Qt,sqlquery,bindvalue
-
Hi
Then you should describe the problems, show any errors and
show the code that has this issue.
With that level of information, you currently have added, most will simply skip your post.here is sample.
QSqlQuery query; query.prepare("INSERT INTO person (id, forename, surname) " "VALUES (:id, :forename, :surname)"); query.bindValue(":id", 1001); query.bindValue(":forename", "Bart"); query.bindValue(":surname", "Simpson"); query.exec(); }
-
wrote on 23 Apr 2019, 16:00 last edited by
1/3