如果想从后往前查符合条件的记录怎么做呢? 使用locate 来查询 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 table1.last;while not table1.bof dobegin dosomething;end; while not table1.bof dotable1.prior 用索引,数据库中取数据时,sql 语句 加上 order by 索引字段 desc按降序排列 select * from test order by field desc 不是很明白你的意思 阿,你可以先让这些记录逆序排列,然后adoquery.prior或者 if not adoquery1.bof then while not table1.bof do table1.last;while not table1.bof dobegin dosomething; prior;end; query1.close;query1.sql.clear;query1.sql.add('select * from a where .. order by 欄位 desc')while not query1.bof dobegin dosomething; next;end; 同意chenkandy(多少爱可以重来)的方法,頂 关于BPL开发过程中,对依赖包的编译管理问题 几星级的效果如何实现 现在请告诉我,怎么样区分开来每个元素。SQL的连接字符串的问题。 如何实现每页小计? @@@@@难道就不行吗,我真的搞不懂了?@@@@@ 一个关于Delphi连接Sql server数据库的问题 delphi中客户端怎样把数据以数据封包的形式传递给服务器? 急:服务程序访问SQL数据库 有谁介绍一下微软的.NET与DNA方案的区别以及联系。 请问如何在Delphi中调用API函数播放MIDI音乐? 菜鸟提问。关于消息处理的问题 求SQL服务器列表问题,(另开贴送100给出正确答案的朋友)!!!
while not table1.bof do
begin
dosomething;
end;
table1.prior
或者 if not adoquery1.bof then
while not table1.bof do
begin
dosomething;
prior;
end;
query1.sql.clear;
query1.sql.add('select * from a where .. order by 欄位 desc')while not query1.bof do
begin
dosomething;
next;
end;