- 1
- 2
- 3
- 4
- 5
QSqlQuery* query = new QSqlQuery(db2);
QDate curDate = QDate::currentDate();
query->prepare("select id,custom,actual0,actual1,division,fili,author,dogo,sumo_dogo,sumo_proshe,sumo_penis,sumo_shtrafa,state,mark,anka from clbalance where actual0 <= ? and actual1 > ?");
query->addBindValue(QDate::currentDate().addDays(-1));
query->addBindValue(QDate::currentDate().addDays(-1));