Skip to main content

Identify tables without primary key

  • May 30, 2016
  • 1 reply
  • 3 views

Rajzz
Forum|alt.badge.img+1
  • Participating Frequently

How to identify list of tables with doesnt have PK in its DDL ? 

1 reply

FiliN
Forum|alt.badge.img
  • Participating Frequently
  • June 8, 2016

Did you check

 


select * from v_catalog.tables t where t.table_name not in
(
select table_name from v_catalog.primary_keys
)

 

?