请问query的CachedUpdates属性有什么作用?能举例说一下吗?
多谢。

解决方案 »

  1.   

    是把post后的结果,放到cach里,
    如果数据正确的话就用cachedupdates写到表里
      

  2.   

    CachedUpdates是缓存更新,用Post是其实数据只提交到缓冲区,必须调用UpdateBatch才提交数据库,它一般在批量提交数据时用。
      

  3.   

    如果要删除query当前的记录,应该怎么写程序呢?这样写对吗?
    form1.query1.CachedUpdates:=false;
    form1.query1.Delete;
    form1.query1.CachedUpdates:=true;
      

  4.   

    那我要如何删除query中当前选中的数据呢?
      

  5.   

    delete 后,再 ApplyUpdates