How do I find the definition of a named constraint in Oracle?

前端 未结 4 1231
有刺的猬
有刺的猬 2021-01-07 22:44

All I know about the constraint is it\'s name (SYS_C003415), but I want to see it\'s definition.

4条回答
  •  清歌不尽
    2021-01-07 23:03

    Use following query to get a definition of constraint in oracle:

    Select DBMS_METADATA.GET_DDL('CONSTRAINT', 'CONSTRAINT_NAME') from dual
    

提交回复
热议问题