Created
April 4, 2019 14:08
-
-
Save llagerlof/2ed0af8eefb775cda9b08ebc8b31dbcc to your computer and use it in GitHub Desktop.
Identify a Oracle constraint or foreign key rule by its name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
USE REF_CONSTRAINT IF ITS A FOREIGN KEY. | |
USE CONSTRAINT IF ITS ANOTHER TYPE OF CONSTRAINT. | |
*/ | |
SELECT DBMS_METADATA.GET_DDL('REF_CONSTRAINT', 'FK_HUMAN_PLANET') FROM dual; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment