Disable all table constraints in Oracle

后端 未结 11 968
耶瑟儿~
耶瑟儿~ 2020-11-28 18:35

How can I disable all table constrains in Oracle with a single command? This can be either for a single table, a list of tables, or for all tables.

11条回答
  •  佛祖请我去吃肉
    2020-11-28 18:54

    In the "disable" script, the order by clause should be that:

    ORDER BY c.constraint_type DESC, c.last_change DESC
    

    The goal of this clause is disable the constraints in the right order.

提交回复
热议问题