cdw1p

Yii2 Schema Tuning

May 20th, 2020
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. vendor/yiisoft/yii2/db/oci/Schema.php
  2.  
  3. findConstraints
  4.  
  5.  
  6. SELECT
  7. D.CONSTRAINT_NAME,
  8. D.CONSTRAINT_TYPE,
  9. C.COLUMN_NAME,
  10. C.POSITION,
  11. C.TABLE_NAME
  12. FROM ALL_CONS_COLUMNS C
  13. INNER JOIN ALL_CONSTRAINTS D ON D.OWNER = C.OWNER AND D.CONSTRAINT_NAME = C.CONSTRAINT_NAME
  14. WHERE
  15. C.OWNER = :schemaName
  16. AND C.TABLE_NAME = :tableName
  17. ORDER BY D.CONSTRAINT_NAME
Advertisement
Add Comment
Please, Sign In to add comment