我用dbgrideh连接一个adoquery,这个query的语句是这样的“select * from table1”当通过dbgrideh新增,减少table1中的内容时,需要同步更新table2中的一个字段,请问,如何才能通过事务来解决这个问题?是在beforepost中实现吗?