Qgetseq is a TUniQuery *.
QgetseqF is a TField *.
Code: Select all
Qgetseq->SQL->Text="SELECT theseq.nextval as seq from dual";
if (!Qgetseq->Prepared) {
Qgetseq->Prepare();
QgetseqF=Qgetseq->Fields->Fields[0];
}
This is due to the fact it is a sequence: if sql->Text is
Code: Select all
SELECT SUM(todo*Multiplicity) as tottodo, SUM(done*Multiplicity) as totdone
FROM BatchState
WHERE IDGroup=:1
Any hint?