Re: About table schema

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: About table schema
Дата
Msg-id 200405261928.37876.peter_e@gmx.net
обсуждение исходный текст
Ответ на About table schema  (Wei Shi <weishisky@yahoo.com>)
Список pgsql-general
Wei Shi wrote:
> Hi, does anyone know how to get the schema information
> of a table.  More specifically, I would like to know
>
> 1. which field(s) are primary keys?
> 2. the data type of each field of a table?
> 3. If a field is a foreign key, what field/table it
> is referring to.

Use the information schema views.


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] COPY formatting
Следующее
От: Frank Finner
Дата:
Сообщение: Re: performance very slow