query.prepare("INSERT INTO TradeData (symbol,price,size,time) VALUES ( :symbol, :price, :size, :timestamp)");
query.bindValue(":symbol",symbol);
query.bindValue(":price",price);
query.bindValue(":size",size);
query.bindValue(":timestamp",timestamp);
query.exec();
QSqlQuery query;
query.prepare("INSERT INTO TradeData (symbol,price,size,time) VALUES ( :symbol, :price, :size, :timestamp)");
query.bindValue(":symbol",symbol);
query.bindValue(":price",price);
query.bindValue(":size",size);
query.bindValue(":timestamp",timestamp);
query.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks