在保存的时候就报错,语句:UpdateBatch()
错误提示如下:row cannot be located for updating some values may have been changed since it was last read 
adoquery光标模式以改为这样
adoquery.CursorType:=ctstatic;
adoquery.LockType:=ltBatchOptimistic;
请问以前错误是什么原因造成的?
请问用adoquery 怎么样才能一下更新多条记录的值,

解决方案 »

  1.   

    update talbe set coul1=vcoul1,coul2=vconul2... where ...
      

  2.   

    你更新的是不是视图呀
    如果是如视图,请查看Update Table属性,
      

  3.   

    后台数量没有个触发器,更新的是表而不是视图,
    就是在adoquery 执行SQL语句:‘update table set 字段A='d' where *****’
    执行后没有出错,但在保存的时候就报错,语句:UpdateBatch()
    错误提示如下:row cannot be located for updating some values may have been changed since it was last read
      

  4.   

    update table set 字段A=:'d' where *****’
      

  5.   

    update table set 字段A=:'d' where *****’;