I think you can use a TQuery Component instead of a TTable Component,and then you can use a UPDATE SQL statement to complete this task. Just like this:
TQuery.sql.add 'Update table2,table1 set table2.fieldX=sum(table1.fieldY) where table1.X=table2.X'
or similar statement.
TQuery.sql.add 'Update table2,table1 set table2.fieldX=sum(table1.fieldY) where table1.X=table2.X'
or similar statement.
然后 修改 Table 的值。
是ODBC 连接的吗? 这种情况下用TTABLE 就比较慢。改用TQUERY 要好得多。
也可以试试用其它方式连接数据库。
WHERE table1.z=table2.z;