table1的TableName设为score.db,在设计时把table1的Active属性设为True,在程序中
要删一个字段,用如下代码:
procedure TForm1.Button1Click(Sender: TObject);
begin
 table1.active:=false;
 with query1 do begin
  close;
  sql.Clear;
  sql.Add('alter table score drop column 学号');
  execsql;
  end;
end;
但当程序运行时按下button1按钮时,却出错,提示说“Table is busy”。这是为甚么啊?
我明明已经把table1的active属性设为false了啊。后来我在设计时把table1的active属性
设为false,在运行时又可以成功删除了。这到底是怎么回事?
我该怎么做才能在设计时把active设为true而又能成功删除呢?
希望各位高手不吝赐教!
谢谢!!!