Permalink
Browse files

Minor enhancement

  • Loading branch information...
daitangio committed Dec 16, 2016
1 parent 78123cf commit 2dce816ea1b0af4c1c20a2c3965b0524cedea610
Showing with 3 additions and 1 deletion.
  1. +3 −1 missed-fk-indexes.sql
View
@@ -1,8 +1,9 @@
column columns format a30 word_wrapped
column tablename format a15 word_wrapped
column constraint_name format a15 word_wrapped
column constraint_name format a28 word_wrapped
prompt Foreign key unindexed can lead to full table lock
prompt Analysis is orderd by column name to find out common structurs
select table_name, constraint_name,
cname1 || nvl2(cname2,','||cname2,null) ||
nvl2(cname3,','||cname3,null) || nvl2(cname4,','||cname4,null) ||
@@ -39,5 +40,6 @@ select table_name, constraint_name,
and i.column_position <= cons.col_cnt
group by i.index_name
)
order by columns, table_name;
/

0 comments on commit 2dce816

Please sign in to comment.