query.prepare("INSERT INTO partners (Company, City, Address, Bulstat, VAT, MOL, Phone, Fax, Email, Note, DateCreated )"
"VALUES (:company, :city, :address, :bulstat, :vat, :mol, :phone, :fax, :email, :note, :date)");
query.bindValue(":company", company);
query.bindValue(":city", city);
query.bindValue(":address", address);
query.bindValue(":bulstat", bulstat);
query.bindValue(":vat", vat);
query.bindValue(":mol", mol);
query.bindValue(":phone", phone);
query.bindValue(":fax", fax);
query.bindValue(":email", email);
query.bindValue(":note", note);
query.bindValue(":date", "21-08-2016");
query.exec();
QSqlQuery query;
query.prepare("INSERT INTO partners (Company, City, Address, Bulstat, VAT, MOL, Phone, Fax, Email, Note, DateCreated )"
"VALUES (:company, :city, :address, :bulstat, :vat, :mol, :phone, :fax, :email, :note, :date)");
query.bindValue(":company", company);
query.bindValue(":city", city);
query.bindValue(":address", address);
query.bindValue(":bulstat", bulstat);
query.bindValue(":vat", vat);
query.bindValue(":mol", mol);
query.bindValue(":phone", phone);
query.bindValue(":fax", fax);
query.bindValue(":email", email);
query.bindValue(":note", note);
query.bindValue(":date", "21-08-2016");
query.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks