We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


Identify tables without primary key — Vertica Forum

Identify tables without primary key

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

Comments

  • Did you check

     


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

     

    ?

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file