使用locate 来查询

解决方案 »

  1.   

    table1.last;
    while not table1.bof do
    begin
      dosomething;
    end;
      

  2.   

    while not table1.bof do
    table1.prior
      

  3.   

    用索引,数据库中取数据时,sql 语句 加上 order by 索引字段 desc按降序排列
      

  4.   

    select * from test order by field desc
      

  5.   

    不是很明白你的意思 阿,你可以先让这些记录逆序排列,然后adoquery.prior
    或者 if not adoquery1.bof then
      

  6.   

    while not table1.bof do
      

  7.   

    table1.last;
    while not table1.bof do
    begin
      dosomething;
      prior;
    end;
      

  8.   

    query1.close;
    query1.sql.clear;
    query1.sql.add('select * from a where .. order by 欄位 desc')while not query1.bof do
    begin
      dosomething;
      next;
    end;
      

  9.   

    同意chenkandy(多少爱可以重来)的方法,頂