query.prepare("INSERT INTO partners (Company, City, Address, Bulstat, VAT, MOL, Phone, Fax, Email, Note, DateCreated )"
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
query.bindValue(0, company);
query.bindValue(1, city);
query.bindValue(2, address);
query.bindValue(3, bulstat);
query.bindValue(4, vat);
query.bindValue(5, mol);
query.bindValue(6, phone);
query.bindValue(7, fax);
query.bindValue(8, email);
query.bindValue(9, note);
query.bindValue(10, "21-08-2016");
query.exec();
QSqlQuery query;
query.prepare("INSERT INTO partners (Company, City, Address, Bulstat, VAT, MOL, Phone, Fax, Email, Note, DateCreated )"
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
query.bindValue(0, company);
query.bindValue(1, city);
query.bindValue(2, address);
query.bindValue(3, bulstat);
query.bindValue(4, vat);
query.bindValue(5, mol);
query.bindValue(6, phone);
query.bindValue(7, fax);
query.bindValue(8, email);
query.bindValue(9, note);
query.bindValue(10, "21-08-2016");
query.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks