请高手帮忙一下啊!!!! 应该是你删除条件不对吧.look 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 with maindata.adotbl_month dobegin while not eof do delete;end; with maindata.adotbl_month do begin first; while not eof do begin delete; end; end; 不能用next,用first可以了 楼上的说的不对啊,你没有循环..用标准的SQL写好了.. with maindata.adotbl_month do begin first; while not eof do begin delete; first; end; end; with maindata.adotbl_month do begin first; while not eof do begin delete; post; //!!! next; end; end; with maindata.adotbl_month do begin first; while not eof do begin delete; post; //!!! first; //!!! end; end; 注意: 错在多了一个“next”!why?因为:delete后,记录指针已经移动到了下一条,而你next后,指针又向下移动了一条!因此,每一次都不能全部删除,假如共有n条纪录,每次只能删除2n或2n+1条! 关于BDE,ADO弱弱的问^_^b高手请进~~~~~ 如果数据库用的是SQL Server2000,怎么做安装文件,高分!!! 如何检测Com口已经连接???给提示,给具体设计方法更给分,呵呵 dspack delphi 内存泄漏 第一天用Delphi,感觉很好 image被flash遮掩?? .ini文件问题 数据访问时,异常处理执行有误,请指教!!!!!! 一个有趣的问题,有兴趣的请进来看看 why?why? delphi的打印问题:双面打印时怎样实现左右翻页的功能啊 在DELPHI中怎样实现文本形式报表的多页打印
begin
while not eof do delete;
end;
begin
first;
while not eof do
begin
delete;
end;
end;
用标准的SQL写好了..
begin
first;
while not eof do
begin
delete;
first;
end;
end;
begin
first;
while not eof do
begin
delete;
post; //!!!
next;
end;
end;
begin
first;
while not eof do
begin
delete;
post; //!!!
first; //!!!
end;
end;
错在多了一个“next”!
why?
因为:delete后,记录指针已经移动到了下一条,而你next后,指针又向下移动了一条!
因此,每一次都不能全部删除,假如共有n条纪录,每次只能删除2n或2n+1条!