Hallo,
I do
and I retrieve
Why is that?
My aim is to retrieve a specific record at a known ID. My approach was all easy: thought instead of digging through all the query using
it was better to say
But obviously I don't understand the methode. Anybody here to help me out?
Thanks, Lars
Added after 8 minutes:
update: ok, 29 is the length of the record I try to readout.
But what about
returns
I do
Code:
- qDebug() << "ID" << id;
- qDebug() << query->isActive() << query->isSelect() << query->seek(id, false) << query->record();)
and I retrieve
Why is that?
My aim is to retrieve a specific record at a known ID. My approach was all easy: thought instead of digging through all the query using
Code:
- query->next()
it was better to say
Code:
- query->seek(id)
But obviously I don't understand the methode. Anybody here to help me out?
Thanks, Lars
Added after 8 minutes:
update: ok, 29 is the length of the record I try to readout.
But what about
Code:
- qDebug() << "ID" << id;
- qDebug() << query->isActive() << query->isSelect() << query->seek(id, false) << query->at();
returns
Code:
- ID 74
- true true true 110