0
I have the following situation: I have to update some ids with the where
in a requisition number, but are between two banks, firebirds, different. I did this:
while not qry1.eof do
begin
Qry2.sql.text := ' update tabela set id =
qry1.fieldbyname('id').asstring where numero =
qry1.fieldbyname('numero').asstring ' ;
Qry2.execsql;
Qry1.next;
End;
This works (I wrote a little different here not to write a lot). But this way it takes longer than I would like.
Does anyone have any idea how to improve this?
Thank you. It got a lot faster.
– sounobre