Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vendor/yiisoft/yii2/db/oci/Schema.php
- findConstraints
- SELECT
- D.CONSTRAINT_NAME,
- D.CONSTRAINT_TYPE,
- C.COLUMN_NAME,
- C.POSITION,
- C.TABLE_NAME
- FROM ALL_CONS_COLUMNS C
- INNER JOIN ALL_CONSTRAINTS D ON D.OWNER = C.OWNER AND D.CONSTRAINT_NAME = C.CONSTRAINT_NAME
- WHERE
- C.OWNER = :schemaName
- AND C.TABLE_NAME = :tableName
- ORDER BY D.CONSTRAINT_NAME
Advertisement
Add Comment
Please, Sign In to add comment