如何删除access中的一个表!谢谢...

解决方案 »

  1.   

    用ADO举例:
    var
      AQuery: TADOQuery;
    begin
      AQuery := TADOQuery.Create(nil);
      AQuery.Connection := ADOConnection1;
      AQuery.SQL.Text := 'Drop Table 邮件列表';
      AQuery.ExecSQL;
      AQuery.Free;
    end;
    其中ADOConnection1是已设置好的到你的Access数据库的连接。
      

  2.   

    使用ado, adoconn为数据库连接,程序为: adoconn.Execute('drop table table1',I);
    I为整型变量。
      

  3.   

    是啊,使用 Drop Table TableName 语句
      

  4.   

    Drop Table TableName 的SQL语句就行了