Tables With No PK
NO PRIMARY KEY NOTES:
select OWNER, TABLE_NAME from dba_tables dt where not exists ( select 'TRUE' from dba_constraints dc where dc.TABLE_NAME = dt.TABLE_NAME and dc.CONSTRAINT_TYPE='P') and OWNER not in ('SYS','SYSTEM') order by OWNER, TABLE_NAME
No comments:
Post a Comment