How to prevent Delphi ADO from loading the entire table into memory?

前端 未结 7 2175
后悔当初
后悔当初 2021-02-09 01:22

I am not a Delphi programmer, but I I got an old Delphi 7 application that I need to fix and it is using ADO.

The database table (MS Accesss) contains +100,000 rows and

7条回答
  •  抹茶落季
    2021-02-09 01:38

    use adoquery If you do not need any row and just want insert new row use sql command like this 'select * from myTable where id=-1' Since Id is autonumber no rows will return . or 'select * from myTable where 1=-1' But I think it is not good way for Insering data. Using adocommand is sure much better.

    if you want X rows 'select top X * from myTable '

提交回复
热议问题