在下表中,一旦将helena的my_identifier值更新为1,我们需要将数据从该表和Database1中的其他几个表复制到Database2中的TableB。另外,一旦复制数据,data_migrated列值必须更改为1。
TableA in Database1:
name address my_identifier(bool) data_migrated
josh CA 0 0
helena LA 0 0
更新后:
TableA in Database1:
name address my_identifier(bool) data_migrated
josh CA 0 0
helena LA 1 0
触发后:
TableA in Database1:
name address my_identifier(bool) data_migrated
josh CA 0 0
helena LA 1 1