Netezza Sql query

Akshay J picture Akshay J · Sep 16, 2010 · Viewed 14.7k times · Source

I have a list of tables in a Netezza database and I want to get the name of primary key for each of the tables.

Can anyone provide me the query.

Answer

Winder picture Winder · Sep 24, 2010

You can use this query.

SELECT * FROM _v_relation_keydata;