Re: how to get primary / unique key on table ?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: how to get primary / unique key on table ?
Дата
Msg-id Pine.LNX.4.44.0208040115190.29827-100000@cm-lcon1-46-187.cm.vtr.net
обсуждение исходный текст
Ответ на how to get primary / unique key on table ?  ("Ahmad Munif" <munif@hotpop.com>)
Список pgsql-general
Ahmad Munif dijo:

> how to get field on table that primary/unique key ?
> does postgres have function to get that field name ?

You can look it up in system catalogs.  Fire up psql -E and do a
\d sometable

The last query looks up indexes.  You can poke around some more to get
the information you need.

--
Alvaro Herrera (<alvherre[a]atentus.com>)
www.google.com: interfaz de linea de comando para la web.


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Searching accented words
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Index scan ???