RE: add primary key

Поиск
Список
Период
Сортировка
От mikhail malamud
Тема RE: add primary key
Дата
Msg-id MABBJIIJCNOHJDEFAAJEKEMDCEAA.mikhail.malamud@drexel.edu
обсуждение исходный текст
Ответ на RE: add primary key  ("mikhail malamud" <mikhail.malamud@drexel.edu>)
Ответы Re: add primary key  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-novice
I ve been trying to find an answer to this question but all in vain. Can
someone pleease help me. How do you add a primary key constraint to an
existing table.



-----Original Message-----
From: pgsql-novice-owner@postgresql.org
[mailto:pgsql-novice-owner@postgresql.org]On Behalf Of mikhail malamud
Sent: Saturday, March 10, 2001 10:55 PM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] add primary key


ALTER TABLE Activity add
    CONSTRAINT  PRIMARY KEY
    (
        ActivityId
    )
What's wrong with this. How do I add primary key constraint.
I tried to look in the docs but I could not find the answer, can anyone
also point me to a place where I could find an answer to this question
without disturbing the entire mailing list with such a probably simple
question.


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly


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

Предыдущее
От: "Dax Duskin"
Дата:
Сообщение: Re: array column problem
Следующее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: perl installation problem and installation of postgres from rpms