adoquery.first;
while not adoquery.eof do
begin
showmessage(adoquery.Fieldbyname('字段名').AsString);//通过不同列名列移动
adoquery.next;//行移动
end;
adoquery.first;
while not adoquery.eof do
begin
showmessage(adoquery.Fields[0].AsString);//通过不同索引列移动
adoquery.next;//行移动
end;
本文提供了一段使用ADO Query组件遍历数据集并访问不同字段的示例代码,展示了如何通过字段名和索引进行数据读取。
1805

被折叠的 条评论
为什么被折叠?



