RE: add primary key - Mailing list pgsql-novice

From mikhail malamud
Subject RE: add primary key
Date
Msg-id MABBJIIJCNOHJDEFAAJEKEMDCEAA.mikhail.malamud@drexel.edu
Whole thread Raw
In response to RE: add primary key  ("mikhail malamud" <mikhail.malamud@drexel.edu>)
Responses Re: add primary key
List 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 by date:

Previous
From: "Dax Duskin"
Date:
Subject: Re: array column problem
Next
From: "Brett W. McCoy"
Date:
Subject: Re: perl installation problem and installation of postgres from rpms