SQL-Query 2 get primary key

Поиск
Список
Период
Сортировка
От Marc Grimme
Тема SQL-Query 2 get primary key
Дата
Msg-id 36CD659A.438BE39B@atix.de
обсуждение исходный текст
Список pgsql-sql
Hi,

if I create a table like this:
CREATE TABLE test (
   id decimal(3) primary key,
   name varchar(32));

how can I ask postgres which is the primary key from table test?
I hope to get something like "id is the primary key from table test.".
Any ideas
Marc
--
-----------------------------------------------------------
Marc Grimme - An der Muehle 1 - 85716 Unterschleissheim
Fon: +49 89 37 48 81 22 - +49 89 37 48 92 7 - 3/0 -
mail2: grimme@informatik.tu-muenchen.de, grimme@atix.de
-----------------------------------------------------------
The UNIX Guru's View of Sex:
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ;
sleep

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

Предыдущее
От: tolik@icomm.ru (Anatoly K. Lasareff)
Дата:
Сообщение: Re: [SQL] Insert a long text
Следующее
От: Frank Barknecht
Дата:
Сообщение: Re: [SQL] Insert a long text