我用Delphi连的Access库,用ADOTable操作数据库,在删除时有时怎么报错?
报错信息为“Key column information is insufficient or incorrect,too
many rows were effected by updata”

解决方案 »

  1.   

    我直接用的很简单的语句。
    if ADOTable1.RecordCount>0  then ADOTable1.Delete;
      

  2.   

    ADOTable1.Delete
    修改为一个SQL语句
    truncate table tablename
      

  3.   

    Access数据库不支持拉......可能是....
      

  4.   

    sql.Clear;
     sql.Add('Deleto from Lend Where ReaderID=:ReaderID');
     ExecSQL;
      

  5.   

    不单单是删除了多行数据那么简单,我觉得你的ADOTABLE1设置有错