我想将adotable_c1对应的表c1中的5条记录清空,其中c1的记录是这样添加的
adotable_c1.append;
adotable_c1['item']:='zj';
adotable_c1['minsup']:=count_zj;
adotable_c1.post;
用以下方法清空
adoquery_c1.close;
adoquery_c1.SQL.clear;
adoquery_c1.SQL.Add('delete * from c1');
adoquery_c1.ExecSQL;
执行完以后我用showmessage(inttostr(adotable_c1.RecordCount));查看显示的记录还是5!
请教高手这是为什么?是方法错误吗?好的方法应该是什么?
adotable_c1.append;
adotable_c1['item']:='zj';
adotable_c1['minsup']:=count_zj;
adotable_c1.post;
用以下方法清空
adoquery_c1.close;
adoquery_c1.SQL.clear;
adoquery_c1.SQL.Add('delete * from c1');
adoquery_c1.ExecSQL;
执行完以后我用showmessage(inttostr(adotable_c1.RecordCount));查看显示的记录还是5!
请教高手这是为什么?是方法错误吗?好的方法应该是什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货