delphi 这样取消及联删除谢谢

解决方案 »

  1.   

    在你的数据库里取消,DELPHI也是操作SQL.根本还是在数据库
      

  2.   


    --在sql中写alter table t
    drop constraint 约束名 --在delphi中写var
      str:string;
    begin
      str:='alter table 表名 drop constraint 约束名';
      with adoquery do
        begin
          close;
          sql.clear;
          sql.add(str);
          open;
        end;
    end;
      

  3.   

        begin
          close;
          sql.clear;
          sql.add(str);
          open;-----------改成EXECSQL
        end;