W
wanglong
Unregistered / Unconfirmed
GUEST, unregistred user!
我想删除一个表里id小于4000的记录删除,大约有100条,不能执行,这是为什么?当符合条件少于10条时非常快。
procedure TForm1.Button1Click(Sender: TObject);
var
sql:string;
begin
sql:='delete from name where id<4000';
query1.close;
query1.SQL.clear;
query1.sql.Add(sql);
query1.ExecSQL;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
sql:string;
begin
sql:='delete from name where id<4000';
query1.close;
query1.SQL.clear;
query1.sql.Add(sql);
query1.ExecSQL;
end;