I have a database *.mdb. The task is to get all the values from a certain field of this database and write them to a file. Now the code looks something like this
while not ADOQuery1.Eof do begin
resultstringlist.add(ADOQuery1.FieldByName('_fieldname_').asString);
ADOQuery1.next;
end;
It works, but I think that there is a more optimal and faster option. With a database size of about 40,000 records, this process takes quite a long time. Database which I need to work with contains dozens of times more records and dozens of tables. I think this is a pretty stupid question, but I could not find a solution in a few days myself. Databases for me is an unexplored territory. Not for long, I hope.