Oracle find a constraint

后端 未结 3 648
你的背包
你的背包 2020-12-12 09:29

I have a constraint called users.SYS_C00381400. How do I find what that constraint is? Is there a way to query all constraints?

3条回答
  •  轮回少年
    2020-12-12 09:51

    maybe this can help..

    SELECT constraint_name, constraint_type, column_name
    from user_constraints natural join user_cons_columns
    where table_name = "my_table_name";
    

提交回复
热议问题