Re: Again: How do I select primary/foreign keys?

Поиск
Список
Период
Сортировка
От Chris Smith
Тема Re: Again: How do I select primary/foreign keys?
Дата
Msg-id 4.3.2.7.2.20010608084554.00e97a90@cooee.cybersydney.com.au
обсуждение исходный текст
Ответ на Again: How do I select primary/foreign keys?  (ffrt <ffrt@ace.ulyssis.org>)
Список pgsql-novice
Hey,

The pg_indexes view might give you a starting point, also the pg_tables
view. You can see what they do, and take it from there.

HTH.

>Hi again and sorry for the overhead,
>
>it seems I didn't express myself 100% clearly. I need a SELECT statement
>that will give me, for a given table (pg_class.relname='...'), the name of
>the column (pg_attribute.attname) that contains the primary key (if any),
>and the names of the columns that contain foreign keys.
>
>I can't seem to get there quite yet.

----------------------
      Chris Smith
http://www.squiz.net/


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Sykora, Dale"
Дата:
Сообщение: 2 novice questions
Следующее
От: Chris Smith
Дата:
Сообщение: Re: 2 novice questions