all non-PK columns from information schema

From: Tarlika Elisabeth Schmitz <postgresql6(at)numerixtechnology(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: all non-PK columns from information schema
Date: 2011-11-15 08:59:28
Message-ID: 20111115085928.78c335e3@dick.coachhouse
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'd like to select all column names for a specific table except those
that are part of the PK.

I know I need to somehow join information_schema.columns,
key_column_usage and table_constraints but how?

--

Best Regards,
Tarlika Elisabeth Schmitz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2011-11-15 09:12:11 Re: how to adjust auto increment id offset?
Previous Message Bèrto ëd Sèra 2011-11-15 08:56:00 Re: how to adjust auto increment id offset?