for i := 1 to 1000 do begin QueryStr := 'INSERT INTO log (date, time, matchrate)'; QueryStr := QueryStr + 'VALUES ("2018-10-20", "14:30:20", "' + IntToStr(i) + '");'; try SQLQuery1.SQL.Text := QueryStr; SQLQuery1.Prepared := true;
SQLQuery1.ExecSQL(); except on E: Exception do begin Memo1.Lines.Add('Exception raised with message: ' + E.Message); end; end; end;