Last active
August 29, 2015 14:04
-
-
Save yujihamaguchi/41a4056b87a1f2dd3c58 to your computer and use it in GitHub Desktop.
[Redshift] テーブル名と制約名の紐付け一覧
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
SELECT | |
(SELECT relname FROM pg_class r2 WHERE r2.oid = r1.conrelid) AS table_name | |
,conname AS constraint_name | |
FROM | |
pg_constraint r1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment