问题描述:当父表有子表的外键约束时,无法直接truncate父表.报ORA-02266: unique/primary keys in table referenced by enabled foreign keys.这里使用另一种办法来解决这个问题:先把外键失效,truncate表之后再把外键生效.SQL> truncate table machine_room;truncate table machine_room *ERROR at line 1:ORA-02266: unique/pri…