三层中的clientdataset就相当于两层中的dataset,不过还是有区别。所以你就用clientdataset进行查询、加入等操作就可以了。如查询: with clientdataset do begin close; commandtext:='select * from 表1'; open; end;删除: with clientdataset do begin close; commandtext:='delete from 表1 where ...'; execute; end;
with clientdataset do
begin
close;
commandtext:='select * from 表1';
open;
end;删除:
with clientdataset do
begin
close;
commandtext:='delete from 表1 where ...';
execute;
end;